Results 1 to 6 of 6

Thread: Works on 2k/XP - Invalid Syntax on NT4 - [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Posts
    244

    Works on 2k/XP - Invalid Syntax on NT4 - [Resolved]

    The following code works on 2000/XP but generates an error: Invalid Syntax on WinNT 4.0. Does anyone know what the proper syntax for WinNT40/2000/XP would be?

    VB Code:
    1. Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    2.  
    3. Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
    Last edited by jlegan; Apr 21st, 2003 at 08:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width