I'm getting error number -2147217405 after this line of code is executed:
However, there is another VBScript file I have that uses this exact line of code to do exactly what I'm trying to do, yet it succeeds. Any suggestions?
Code:
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
However, there is another VBScript file I have that uses this exact line of code to do exactly what I'm trying to do, yet it succeeds. Any suggestions?