WSH/VBS Skript zur Anzeige der Domainuser

showUserInfo.vbs

Set objExplorer = WScript.CreateObject("InternetExplorer.Application", "IE_")

objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 400
objExplorer.Height = 250
objExplorer.Left = 0
objExplorer.Top = 0
objExplorer.Visible = 1
Set objDocument = objExplorer.Document
objDocument.Open

strComputer = "MYPDC"
Set Computer = GetObject("WinNT://"&strComputer&",computer")
Computer.Filter = Array("user")

For Each UserObject in Computer
 objDocument.Writeln UserObject.name & "# " & UserObject.fullname & " # " & UserObject.description & "<br />"
 Wscript.Sleep 100
Next

Sub IE_onQuit()
 Wscript.Quit
End Sub
 
wissen/microsoft/scripting/vbs_wsh_script_zur_anzeige_der_benutzer.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de