svn commit: samba r6306 - in branches/SAMBA_4_0/testprogs/win32: . wmi

jelmer at samba.org jelmer at samba.org
Tue Apr 12 01:14:54 GMT 2005


Author: jelmer
Date: 2005-04-12 01:14:54 +0000 (Tue, 12 Apr 2005)
New Revision: 6306

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6306

Log:
Add simple WMI client test script

Added:
   branches/SAMBA_4_0/testprogs/win32/wmi/
   branches/SAMBA_4_0/testprogs/win32/wmi/echoprocessor.vbs


Changeset:
Added: branches/SAMBA_4_0/testprogs/win32/wmi/echoprocessor.vbs
===================================================================
--- branches/SAMBA_4_0/testprogs/win32/wmi/echoprocessor.vbs	2005-04-12 00:42:40 UTC (rev 6305)
+++ branches/SAMBA_4_0/testprogs/win32/wmi/echoprocessor.vbs	2005-04-12 01:14:54 UTC (rev 6306)
@@ -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


Property changes on: branches/SAMBA_4_0/testprogs/win32/wmi/echoprocessor.vbs
___________________________________________________________________
Name: svn:executable
   + *



More information about the samba-cvs mailing list