1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r6306: Add simple WMI client test script

(This used to be commit 690a7d71d8)
This commit is contained in:
Jelmer Vernooij
2005-04-12 01:14:54 +00:00
committed by Gerald (Jerry) Carter
parent b95914cd82
commit c6595e1ead

View File

@ -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