List all users in a Windows domain
15,082
Solution 1
Yes,
net user
lists all users.
Solution 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
Solution 3
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
Related videos on Youtube
Author by
Minotaure
Updated on September 18, 2022Comments
-
Minotaure almost 2 years
Is there a command to view all users on a Windows domain?
-
datatoo about 12 yearsthis 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
-
Minotaure about 12 yearsWindows server 2008. I am not sure where you see 2003...
-
권회창 about 12 yearsIt 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: technet.microsoft.com/en-us/library/cc731420(v=ws.10).aspx
-
uSlackr about 12 yearsdid you run this from the server?
-
Minotaure about 12 years@uSlackr yes, I ran it from the server. But I do not belive I am an admin on that box.
-
sean christe about 12 yearsYup, 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.