summaryrefslogtreecommitdiffstats
path: root/testprogs/win32/wmi/echoprocessor.vbs
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/win32/wmi/echoprocessor.vbs')
-rwxr-xr-xtestprogs/win32/wmi/echoprocessor.vbs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/win32/wmi/echoprocessor.vbs b/testprogs/win32/wmi/echoprocessor.vbs
new file mode 100755
index 0000000..8ce6f7a
--- /dev/null
+++ b/testprogs/win32/wmi/echoprocessor.vbs
@@ -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