?
Solved

get a list of all the windows users on the domain

Posted on 2011-09-06
13
Medium Priority
?
499 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
13 Comments
 
LVL 79

Accepted Solution

by:
arnold earned 1000 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 56

Assisted Solution

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

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

~bp
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 79

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
 
LVL 56

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 79

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 79

Assisted Solution

by:arnold
arnold earned 1000 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 500 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

762 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