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:
parent
4632b37d0c
commit
690a7d71d8
10
testprogs/win32/wmi/echoprocessor.vbs
Executable file
10
testprogs/win32/wmi/echoprocessor.vbs
Executable 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
|
Loading…
x
Reference in New Issue
Block a user