Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for enabled user accounts 1

Status
Not open for further replies.

BBGCORP

Technical User
Sep 16, 2003
135
US
Does anyone know of a script that will list all ENABLED user accounts in AD? I need to come up with the total number of current users I have on my network, and I'm not really wanting to go through every OU. Thanks in advance.
 
dsquery user -name * -limit 2000 >>userlist.log
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top