Link to home
Start Free TrialLog in
Avatar of 25112
25112

asked on

get a list of all the windows users on the domain

is there a dos command to get all the windows user who are valid and current.. also if we can filter and look out for one specific user..
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 25112
25112

ASKER

i get back

'dsquery' is not recognized as an internal or external command,
operable program or batch file.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what system are you on? are you a domain member server, dc?

http://social.technet.microsoft.com/wiki/contents/articles/dsquery-commands.aspx
Avatar of 25112

ASKER

>>You might want to look at ADFIND from:
ADFIND - what command to run? just like dsquery ?
Avatar of 25112

ASKER


>>what system are you on? are you a domain member server, dc?
i am on r2 application server- not dc. so dsquery needs installed?
Plenty of examples of ADFIND usage on the web if you do some googling, like:

http://blog.koenvermoesen.be/2009/06/29/adfind-onelines/

~bp
adfind -f "objectcategory=user" -dn
Avatar of 25112

ASKER

adfind works good- thanks.
Avatar of 25112

ASKER

arnold
I am running from elevated command window..

it works for me in xp in another domain.. in this domain in vista it is not working..
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial