Solved

get a list of all the windows users on the domain

Posted on 2011-09-06
13
491 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 78

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 54

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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 78

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 54

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 78

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 78

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

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…
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

737 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