1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r6306: Add simple WMI client test script

This commit is contained in:
Jelmer Vernooij 2005-04-12 01:14:54 +00:00 committed by Gerald (Jerry) Carter
parent 4632b37d0c
commit 690a7d71d8

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