3
Is there a command to view all users on a Windows domain?
3
Is there a command to view all users on a Windows domain?
3
Yes,
net user
lists all users.
2
I see that you are on Windows Server 2008. If you have R2, then you have Powershell With AD Modules so you can do:
Get-ADUser
Windows server 2008. I am not sure where you see 2003... – Naftali aka Neal – 2012-04-02T16:29:10.423
Yup, I meant 2008, but have 2003 on the brain because of some stuff that I am working on. 2008R2 is the OS that would have the AD modules already present. – EBGreen – 2012-04-04T12:32:39.393
2
dsquery user
This will only show the first 100 records though. You have to add the -limit
parameter to show more. Of course this will show the full DN, if you want more specific info you specify other parameters to do this. I would recommend looking at the dsquery user page on Technet 1
That does not work at all. 'dsquery' is not recognized as an internal or external command, operable program or batch file.
– Naftali aka Neal – 2012-04-02T16:29:52.763
It is available if you have the Active Directory Domain Services (AD DS) server role installed. If the computer you are trying to do this on is not an AD controller I believe you can install the RSAT tools to use the ds* commands: http://technet.microsoft.com/en-us/library/cc731420(v=ws.10).aspx
– tfitzgerald – 2012-04-02T16:44:41.503did you run this from the server? – uSlackr – 2012-04-02T16:45:06.503
@uSlackr yes, I ran it from the server. But I do not belive I am an admin on that box. – Naftali aka Neal – 2012-04-02T16:52:25.310
1That only seems to show users for this computer and not for the entire domain. even if I do
NET USER /DOMAIN
... – Naftali aka Neal – 2012-04-02T15:48:07.9501@Neal /DOMIAN is supposed to work, you can look for other answers... – HackToHell – 2012-04-02T15:53:25.213
this should work, but realize that if you are on some versions of windows they are not allowed to join a domain so you won't get the same result as a machine who is. home professional, won't but ultimate will for instance – datatoo – 2012-04-02T15:59:09.723