listing local users
I need to list out all local users on all servers within a domain for auditing. Any links to a script that will do such a thing? thanks!
June 23rd, 2009 5:05pm
Hi there,Here is a sample VB script, which can list user account properties in a Management OU within domain fabrikam.com. Just for your reference.
Set objUser = GetObject _
("LDAP://cn=Myerken,ou=Management,dc=NA,dc=fabrikam,dc=com")
WScript.Echo "User Principal Name: " & objUser.userPrincipalName
WScript.Echo "SAM Account Name: " & objUser.sAMAccountName
WScript.Echo "User Workstations: " & objUser.userWorkstations
Set objDomain = GetObject("LDAP://dc=NA,dc=fabrikam,dc=com")
WScript.Echo "Domain controller: " & objDomain.dc
Hope this will be helps.Thanks and Regards,Scorprio
MCTS: Windows Vista | Exchange Server 2007 MCITP: Enterprise Support Technician | Server & Enterprise Admin
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2009 5:35pm
Hi,You can try the PowerShell script from this link:http://badzmanaois.blogspot.com/2009/06/list-local-users-of-remote-systems.htmlRegards,Salvador Manaois IIIMCITP | Enterprise & Server AdministratorMCSE MCSA MCTS(x5) CIWA C|EH My Blog: Bytes and BadzMy Shots:View MyPhotoStream
June 24th, 2009 10:36am


