1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/testprogs/win32/wmi/echoprocessor.vbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
308 B
Plaintext
Raw Normal View History

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