Hello VB Experts,
I've encountered an error -> "SWbemServicesE x: Quota Validation" while executing a VB Script, infact the script is simple and is also running fine for many servers but only bothers me with this error for a particular server, any idea for which case this would occur??
***## Script ##***
strComputer = "server_nam e"
Set objWMIService = GetObject("winm gmts:" & "{impersonation Level=impersona te}!\\" & strComputer & "\root\cimv 2")
'--->Error is occuring in the below line
Set colSettings = objWMIService.E xecQuery ("Select * from Win32_ComputerS ystem")
For Each objComputer in colSettings
Wscript.Echo "System Name: " & objComputer.Nam e
Wscript.Echo "Domain: " & objComputer.Dom ain
Wscript.Echo "SystemType : " & objComputer.Sys temType
Next
Any sort of help would be highly appreciated !!
thnx
I've encountered an error -> "SWbemServicesE x: Quota Validation" while executing a VB Script, infact the script is simple and is also running fine for many servers but only bothers me with this error for a particular server, any idea for which case this would occur??
***## Script ##***
strComputer = "server_nam e"
Set objWMIService = GetObject("winm gmts:" & "{impersonation Level=impersona te}!\\" & strComputer & "\root\cimv 2")
'--->Error is occuring in the below line
Set colSettings = objWMIService.E xecQuery ("Select * from Win32_ComputerS ystem")
For Each objComputer in colSettings
Wscript.Echo "System Name: " & objComputer.Nam e
Wscript.Echo "Domain: " & objComputer.Dom ain
Wscript.Echo "SystemType : " & objComputer.Sys temType
Next
Any sort of help would be highly appreciated !!
thnx
Comment