What are the requirements for running a WMI Script?
I'm running this script on two different machines, one W2K the other XPSP2_Pro.
Everything runs fine on XP machine, but not on W2K
When running the simple script from MSDN -
Dim wmiColl, wmiObj
Dim strComputer
strcomputer = "."
Set wmiColl = GetObject("WinMgmts:\\" & strComputer & "/root/cimv2").ExecQuery("Select * FROM Win32_NTEventlogFile")
For Each wmiObj In wmiColl
WScript.Echo wmiObj.LogfileName
Next
I keep getting an error on "Set wmiColl"
Any ideas as to what needs to be installed to run these scripts??
I'm running this script on two different machines, one W2K the other XPSP2_Pro.
Everything runs fine on XP machine, but not on W2K
When running the simple script from MSDN -
Dim wmiColl, wmiObj
Dim strComputer
strcomputer = "."
Set wmiColl = GetObject("WinMgmts:\\" & strComputer & "/root/cimv2").ExecQuery("Select * FROM Win32_NTEventlogFile")
For Each wmiObj In wmiColl
WScript.Echo wmiObj.LogfileName
Next
I keep getting an error on "Set wmiColl"
Any ideas as to what needs to be installed to run these scripts??