Hi, Welcome!
IT & Telecomunications Knowledgebase

Subscribe to Article Print Article Email Article to Friend Export to PDF

How to Export Active Directory Users Accounts to a file in Windows Server

Product(s)Windows 2000 Server, Windows 2003 Server, Windows 2008 Server, Windows 2012 Server


This article will assist a technician with exporting all users accounts in Active Directory to a text file in Windows Server 2000, 2003, 2008 and 2012.



  • User must have console access (local or RDP) to a Windows Server domain controller.


  1. Login to a Domain Controller.
  2. Click Start.
  3. Click Run.
  4. Type CMD.
  5. At the command prompt, type net users >userlist.txt and press enter.

All user accounts will be included in the file called userlist.txt. 

Article properties

KB Article ID:00066
KB Article Permalink:http://kb.sleepyshark.com/article.php?id=66
Category:Windows Server
Published:Tue, Sep 13, 2016 at 4:54 PM
Updated:Mon, Oct 31, 2016 at 10:30 AM
This article has been viewed 714 times.