• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 516
  • 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
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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