Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » Adsi

List User Accounts on the Local Computer in Windows

You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.

List User Accounts on the Local Computer in Windows using VBScript, WMI and LDAP

Example(s)

Set objNetwork = CreateObject("Wscript.Network")
strComputer = objNetwork.ComputerName

Set colAccounts = GetObject("WinNT://" & strComputer & "")
colAccounts.Filter = Array("user")

For Each objUser In colAccounts
    Wscript.Echo objUser.Name 
Next