• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 522
  • Last Modified:

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..
0
25112
Asked:
25112
  • 5
  • 4
  • 2
  • +1
4 Solutions
 
25112Author Commented:
i get back

'dsquery' is not recognized as an internal or external command,
operable program or batch file.
0
 
Bill PrewCommented:
You might want to look at ADFIND from:

http://www.joeware.net/freetools/

~bp
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
arnoldCommented:
what system are you on? are you a domain member server, dc?

http://social.technet.microsoft.com/wiki/contents/articles/dsquery-commands.aspx
0
 
25112Author Commented:
>>You might want to look at ADFIND from:
ADFIND - what command to run? just like dsquery ?
0
 
25112Author Commented:

>>what system are you on? are you a domain member server, dc?
i am on r2 application server- not dc. so dsquery needs installed?
0
 
Bill PrewCommented:
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
0
 
arnoldCommented:
http://technet.microsoft.com/en-us/library/cc725702%28WS.10%29.aspx

Are you running out in the command window??
0
 
Chev_PCNCommented:
adfind -f "objectcategory=user" -dn
0
 
25112Author Commented:
adfind works good- thanks.
0
 
25112Author Commented:
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..
0
 
arnoldCommented:
admin tools or RSAT for vista/7
http://www.microsoft.com/download/en/details.aspx?id=21090
Might simplify things in the future.
0
 
Chev_PCNCommented:
adfind is difficult to operate between domains - your cmd session needs to be authenticated against the other domain. Unless you have a trust, this is not possible.  I would suggest RDP onto a machine in the 2nd domain & running adfind from there.
If you are looking for data on a specific user, you can use:
adfind -f "name=first.last" (whatever your format) you can also use wildcards.
adfind -f "name=james*"
use the -dn to just get the object dn, or leave off if you want the full detail.  Warning - there's quite a lot!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 5
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now