Creating User and Group Reports in Windows NT

Last reviewed: November 20, 1997
Article ID: Q137848

The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advances Server version 3.1
  • Microsoft Windows NT Workstation version 3.5 and 3.51
  • Microsoft Windows NT Server version 3.5 and 3.51
  • Microsoft Windows NT Resource Kit version 3.5
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

There are no graphical or command line utilities that produce comprehensive reports on groups, users and permissions included with the Windows NT Operating System or the Windows NT Resource Kit. The NET commands and the Windows NT 3.5 Resource Kit ADDUSERS.EXE and PERMS.EXE utilities can be used to create limited administrative reports by piping the output to a text file.

MORE INFORMATION

Limited report generation is possible through the following commands:

NOTE: removal of the /domain switch will generate a report for the local machine.

  1. NET USERS /DOMAIN >USERS.TXT

    This command will return the user accounts from the Primary Domain Controller (PDC) of the current domain, and write them to a file called USER.TXT

  2. NET ACCOUNTS /DOMAIN >ACCOUNTS.TXT

    This command will return the account policy information from the PDC of the current domain, and write it to a file called ACCOUNTS.TXT

  3. NET CONFIG SERVER >SERVER.TXT

    This command will return the server name, version of NT, active network adapter information/MAC address, Server hidden status, Maximum Logged On Users, Maximum open files per session, Idle session time, and assign it to a file called SERVER.TXT

  4. NET CONFIG WORKSTATION >WKST.TXT

    This command will return the workstation name, user name, version of NT, network adapter, network adapter information/MAC address, Logon domain, COM Open Timeout, COM Send Count, COM Send Timout, and write it to a file called WKST.TXT.

  5. NET GROUP /DOMAIN >DGRP.TXT

    This command will return the global groups on the PDC of the current domain, and write them to a file called GRP.TXT.

  6. NET LOCALGROUP >LGRP.TXT

    This command will return the local groups on the local machine, and write them to a file call LGRP.TXT.

  7. NET VIEW /DOMAIN:DOMAINNAME >VIEW.TXT

    This command will return the resources in the specified domain, and write them to a file called VIEW.TXT.

  8. ADDUSERS \\COMPUTERNAME /D USERINFO.TXT

    This Windows NT 3.5 Resource Kit command will return a comma delimited file (for spreadsheets) containing user and group information, and write it to a file called USERINFO.TXT.

  9. PERMS COMPUTERNAME\USERNAME C:\*.* /S >PERMS.TXT

    This Windows NT 3.5 Resource Kit command will return the username permissions on all files in all subdirectories on the c:\ drive of the computername, and write it to a file called PERMS.TXT


Additional query words: prodnt report administration ntreskit
Keywords : ntdomain nthowto NTSrvWkst ntutil kbusage
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: November 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.