I just installed Windows Script Host and am running some sample scripts. I keep getting the following Error:
Error 0x80041002
Code 80041002
Source: (null)
The error always occurs here:
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate, (Backup, Security)}!\\" _
& strComputer & "\root\cimv2"
Other scripts run fine, but it seems to fail whenever it tries to "impersonate". Could someone tell me if I haven't turned something on? I want to run this script on a local computer only. I eventually need to impersonate the administrator.
Thanks
Error 0x80041002
Code 80041002
Source: (null)
The error always occurs here:
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate, (Backup, Security)}!\\" _
& strComputer & "\root\cimv2"
Other scripts run fine, but it seems to fail whenever it tries to "impersonate". Could someone tell me if I haven't turned something on? I want to run this script on a local computer only. I eventually need to impersonate the administrator.
Thanks