srinivaskakumanu
asked on
Command to find number of users in a domain (2003)
Hello
I need to find the actual number of users in our domain, how can i do that?
Thanks
I need to find the actual number of users in our domain, how can i do that?
Thanks
Please refer below link this will help you.
http://www.petri.co.il/list_all_users_and_groups_in_domain.htm
Script for count no of user.
(http://blogs.technet.com/b/heyscriptingguy/archive/2007/09/19/how-can-i-count-the-number-of-users-in-a-group.aspx)
http://www.petri.co.il/list_all_users_and_groups_in_domain.htm
Script for count no of user.
(http://blogs.technet.com/b/heyscriptingguy/archive/2007/09/19/how-can-i-count-the-number-of-users-in-a-group.aspx)
You can also do this using a saved query from within active directory users and computers.
Create a new custom query and paste the below in.
(&(objectCategory=user)(ob jectClass= user)
Create a new custom query and paste the below in.
(&(objectCategory=user)(ob
ASKER
xxdcmast
I tried your Powershell cmd but it does not work
I tried your Powershell cmd but it does not work
Do you have the quest cmdlets? If not download them from here.
http://www.quest.com/powershell/activeroles-server.aspx
http://www.quest.com/powershell/activeroles-server.aspx
dsquery * -filter "(&(objectCategory=person) (objectCla ss=user)(! userAccoun tControl:1 .2.840.113 556.1.4.80 3:=2))"
Please note userAccountControl:1.2.840 .113556.1. 4.803:=2 is for user who's account is enabled
Please note userAccountControl:1.2.840
ASKER
xxdcmast
What version should I download. =Like I stated our Forest/Domain level is 2003. I do have a new server 2008 R2 added recently as a new DC. Should I install the quest software on it, if yes what version.
What version should I download. =Like I stated our Forest/Domain level is 2003. I do have a new server 2008 R2 added recently as a new DC. Should I install the quest software on it, if yes what version.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so much, it worked.
get-qaduser * -sizelimit 0 | Measure-Object | select-object count