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:
committed by
Gerald (Jerry) Carter
parent
b95914cd82
commit
c6595e1ead
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
|
Reference in New Issue
Block a user