Share via


Creating a .reg File

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2

To create a scripting solution that changes a registry setting on a computer, you can use the registry editor to add or modify a registry setting and then export the setting to a .reg file. You can use the .reg file in scripts to apply the registry setting to other computers.

Requirements

  • Credentials: Administrators

  • Tools: Regedit.exe

To export a registry setting to a .reg file

  1. Click Start, click Run, type regedit, and then click OK.

    • In the console tree, navigate to the registry entry that you want to include in the file.

    • Add or modify the entry that you want to export to the .reg file.

    • With the entry selected, on the File menu, click Export.

  2. In the Save in box, navigate to the location for the .reg file.

  3. In the File name box, type a name for the .reg file.

  4. Under Export range, click Selected branch, and then click Save.