Question : How can I list user logon names from Active Directory?

How can I print out a list of user logon accounts from my active directory (Microsoft Server 2003 R2 SP2).  The export function that I find in AD only lists the display name.  I do not need passwords, just the logon name.

Answer : How can I list user logon names from Active Directory?

Hi.

I love the command line. If you are after just the domain usernames, log onto a workstation thats on the domain (you can even do this on the server as well). Make sure that the user account you login with has got rights on the domain .. nothing special .. just normal user rights will do

1. go to the command line (Start then Run and then type cmd and press ok)
2. At the command prompt (the black screen) type the following
    net user /domain  > c:\usernames.txt

3. The above command queries your DC and gets the usernames of all users in your AD and pipes it to c:\usernames.txt. You can then open this file and have a look at it.


Hope the above helps (I assumed you are not aware how to get to the command line .. apologies if you already know and found my directions offensive)
Random Solutions  
 
programming4us programming4us