How to Generate a List of Users

Last reviewed: March 26, 1997
Article ID: Q149781
The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1
  • Microsoft Windows NT Workstation versions 3.5 and 3.51
  • Microsoft Windows NT Server versions 3.5 and 3.51
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

The User Manager application does not provide a method for generating a list of user accounts for a Microsoft Windows NT server or domain.

MORE INFORMATION

You can generate a list of user accounts from the command prompt by use of the NET USER command. Using this command without any additional parameters produces a list of accounts on that computer.

To obtain a list of accounts in the domain that a computer is a member of, use the NET USER /DOMAIN command-line option.

You can redirect the output of the NET USER command to a file for printing or other editing. For example, the command

   NET USER > file.txt

will result in a file with contents similar to those below:

   User accounts for \\SERVER_A

   ------------------------------------------------------------
   Administrator            Guest
   The command completed successfully.

To obtain detailed user account information, edit the captured output to reflect the following and save as a batch file:

   NET USER Administrator
   NET USER Guest

Detailed account information will be returned. The output of the batch file can also be redirected to a file for further editing or printing.


Additional query words: prodnt
Keywords : kbnetwork ntdomain NTSrvWkst
Version : 3.1 3.5 3.51 4.0
Platform : WinNT


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 26, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.