Solved

get a list of all the windows users on the domain

Posted on 2011-09-06
13
457 Views
Last Modified: 2012-05-12
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
Comment
Question by:25112
  • 5
  • 4
  • 2
  • +1
13 Comments
 
LVL 77

Accepted Solution

by:
arnold earned 250 total points
ID: 36492655
0
 
LVL 5

Author Comment

by:25112
ID: 36492678
i get back

'dsquery' is not recognized as an internal or external command,
operable program or batch file.
0
 
LVL 52

Assisted Solution

by:Bill Prew
Bill Prew earned 125 total points
ID: 36492777
You might want to look at ADFIND from:

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

~bp
0
 
LVL 77

Expert Comment

by:arnold
ID: 36492833
what system are you on? are you a domain member server, dc?

http://social.technet.microsoft.com/wiki/contents/articles/dsquery-commands.aspx
0
 
LVL 5

Author Comment

by:25112
ID: 36492918
>>You might want to look at ADFIND from:
ADFIND - what command to run? just like dsquery ?
0
 
LVL 5

Author Comment

by:25112
ID: 36492919

>>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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 52

Expert Comment

by:Bill Prew
ID: 36492943
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
 
LVL 77

Expert Comment

by:arnold
ID: 36492959
http://technet.microsoft.com/en-us/library/cc725702%28WS.10%29.aspx

Are you running out in the command window??
0
 
LVL 9

Expert Comment

by:Chev_PCN
ID: 36493809
adfind -f "objectcategory=user" -dn
0
 
LVL 5

Author Comment

by:25112
ID: 36499779
adfind works good- thanks.
0
 
LVL 5

Author Comment

by:25112
ID: 36499783
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
 
LVL 77

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 36500303
admin tools or RSAT for vista/7
http://www.microsoft.com/download/en/details.aspx?id=21090
Might simplify things in the future.
0
 
LVL 9

Assisted Solution

by:Chev_PCN
Chev_PCN earned 125 total points
ID: 36500976
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now