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:
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")




Reply With Quote