How To Export WinNT Registry Entries from a Command Prompt

Last reviewed: August 6, 1997
Article ID: Q168589
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0

SUMMARY

The contents of the Windows NT 4.0 registry can be exported to a text file without starting Registry Editor.

Additionally, a specific registry key can be designated for export with only the contents being exported.

MORE INFORMATION

To prevent dialog boxes from appearing when you run Registry Editor, you can add a switch to Regedit.exe at a command prompt to export all or part of the Windows NT registry. This makes it a transparent operation and no user input is required.

The syntax for Regedit.exe is documented in the "Windows 95 Resource Kit" on page 1025.

The additional parameters for Regedit.exe are:

   REGEDIT /e  File_name.reg regkey_name

   File_name.reg - Specifies the text file name to which the
                     Registry should be exported.

   Regkey_name   - Optionally specifies the key to be exported.

Examples

To transparently export the registry to a text file, click the Start

button, click run, and then type "regedit /e   c:\output.reg".

To export a registry key, add the specific location to the command such as:

   regedit /e c:\output.reg

   HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Idconfigdb


Additional query words: Export registry DOS
Keywords : nthowto NTSrvWkst kbenv
Version : WinNT:4.0
Platform : winnt
Issue type : kbhowto


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: August 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.