Solved

get a list of all the windows users on the domain

Posted on 2011-09-06
13
443 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 76

Accepted Solution

by:
arnold earned 250 total points
Comment Utility
0
 
LVL 5

Author Comment

by:25112
Comment Utility
i get back

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

Assisted Solution

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

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

~bp
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
>>You might want to look at ADFIND from:
ADFIND - what command to run? just like dsquery ?
0
 
LVL 5

Author Comment

by:25112
Comment Utility

>>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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 51

Expert Comment

by:Bill Prew
Comment Utility
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 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
adfind -f "objectcategory=user" -dn
0
 
LVL 5

Author Comment

by:25112
Comment Utility
adfind works good- thanks.
0
 
LVL 5

Author Comment

by:25112
Comment Utility
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 76

Assisted Solution

by:arnold
arnold earned 250 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

#Citrix #POC #XenDesktop #vCenter #VMware #ESX
A safe way to clean winsxs folder from your windows server 2008 R2 editions
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 the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

771 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

10 Experts available now in Live!

Get 1:1 Help Now