I run BGINFO (to put some text on the Desktop) and in there I provide system up-time via a script. The script starts like this:
Code: Select all
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * From Win32_PerfFormattedData_PerfOS_System")
For Each objOS in colOperatingSystems
intSystemUptime=objOS.SystemUpTime
If I take the script and rename it to give it a VSB extension, I get an error 0x80041017 when I run the script...
Why does this work in all systems but not in this one which is (should be) identical? Ideas? How can I troubleshoot this?