wmi-1.3.16 from opsview.com
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
For Each Host In WScript.Arguments
|
||||
Set WMIservice = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & host & "\root\cimv2")
|
||||
|
||||
Set colsettings = WMIservice.ExecQuery("SELECT * FROM Win32_Processor")
|
||||
|
||||
|
||||
For Each proc In colsettings
|
||||
Wscript.Echo(host & ": " & proc.description)
|
||||
Next
|
||||
Next
|
||||
Reference in New Issue
Block a user