How To Export WinNT Registry Entries from a Command Prompt

Technical Assistance Center Knowledge Base Article - 030808

The information in this article applies to:

This article was originally published in Microsoft Knowledge Base Article 168589

SUMMARY

The contents of the Windows NT 4.0 or Windows 2000 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 start Registry Editor, you can add a switch to Regedit.exe at a command prompt to export all or part of the Windows NT or Windows 2000 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:

Examples

To transparently export the registry to a text file, click Start, click Run, type regedit /e c:\output.txt, and then click OK.

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

Last Reviewed: 08/08/2003

Keywords: registry export key

shastalink > tac > kb

A Service of the Shasta County Office of Education