Hi guys,
I have this piece of code:
and I keep getting an error 0x80041021 even though the script finishes properly and the software I need is installed-so I'm guessing that WMI is connected to correctly.
It references this line:
Can anyone see what is wrong? I think it is a syntax thing but it looks fine.
I have this piece of code:
Code:
For Each strComputer in PCList
Set oWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\CIMV2")
Set oShell = CreateObject("WScript.Shell")
If oFSO.FolderExists("\\" & strComputer & "\c$\Program Files\PDFCreator\") Then
WScript.Quit
and I keep getting an error 0x80041021 even though the script finishes properly and the software I need is installed-so I'm guessing that WMI is connected to correctly.
It references this line:
Code:
Set oWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\CIMV2")
Can anyone see what is wrong? I think it is a syntax thing but it looks fine.