diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-04-12 01:14:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:30 -0500 |
commit | c6595e1ead605d8a0c0bbfb97a0b2ec2e6dce5e4 (patch) | |
tree | 6df24e0a5cb7f07d854402cd55961c4083380a8e /testprogs | |
parent | b95914cd82e7947ad091ae5723dddeb0bb83bec9 (diff) | |
download | samba-c6595e1ead605d8a0c0bbfb97a0b2ec2e6dce5e4.tar.gz samba-c6595e1ead605d8a0c0bbfb97a0b2ec2e6dce5e4.tar.bz2 samba-c6595e1ead605d8a0c0bbfb97a0b2ec2e6dce5e4.zip |
r6306: Add simple WMI client test script
(This used to be commit 690a7d71d8d7c98d2002ab04c289c57ccac835c4)
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/win32/wmi/echoprocessor.vbs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/win32/wmi/echoprocessor.vbs b/testprogs/win32/wmi/echoprocessor.vbs new file mode 100755 index 0000000000..8ce6f7adcd --- /dev/null +++ b/testprogs/win32/wmi/echoprocessor.vbs @@ -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
|