Edit the registry with the GPO

If you manage your network with a Windows server and Active Directory, it may be helpful to remotely register changes with a GPO. In this article, we will see 3 ways to create, modify, or delete a registry key using a GPO.

Use the GPO Wizard to edit the registry

An easy way to take registry changes to computers online is to use Registry Assistant to manage Group Policy. This denier is used to recover an existing pattern of a registry key from a server or remote computer to restore it to other devices.

1. Start by navigating to one of the domain controllers and opening the GPO Management Console.

2. Create a new GPO by right-clicking and editing the corresponding organizational unit or domain.

3. Follow the following tree structure: Computer configuration (Where User) > Settings> Windows Settings> Registry. Right-click Register then select New and Registry Assistant.

4. Select Local computer if you want to recover your registry key from the domain driver or again Another computer for a location online. Click Next.


If you receive a “Network path not found” error when you use a registry wizard to connect to a network computer, it is often because the computer is turned off, the firewall is blocking the connection, or the remote registry service is not enabled. started.

To start the service manually on that computer, open the Powershell window as an administrator and type the following commands:

sc config remoteregistry start= demand
net start remoteregistry

5. Then follow the tree structure that you want to find the registry key that you want to use on your computer. Click to finish Out.

See also  Microsoft Edge finally allows you to share tabs between PC and Android, like on Chrome

6. Finally, it is possible to go back to the tree to make a manual edit of the previously selected registry key. Basically, it is copied with the same value as the server registry value.

Manually create, edit, or delete a registry key using GPO

GPO can create, edit, or delete a registry key manually. All you have to do is enter the path and registry key in the Group Policy Editor.

1. Continue to follow the tree structure in the GPO console Computer configuration (Where User) > Settings> Windows Settings> Registry, but this time click Registry element.

2. You will then be taken directly to the registry key configuration window.

Fill in the following information:

    1. The function used is used to determine whether the key is updated, created, deleted, or replaced. By default, the feature is updated and in most cases fine.
      • Create : Create a registry key. If the parameter already exists, the value is not changed;
      • Update : updates the value of an existing parameter. If the parameter does not exist, it is created automatically.
      • Replace : Deletes and recreates registry items.
      • delete : Delete the registry key
    2. The housing where the key to be changed is located;
    3. Tree structure or key usage path, track to find the key to be edited;
    4. The name of the relevant registry key;
    5. Key value type;
    6. Which is entered on the previous key.

When all this information has been entered, confirm ALRIGHT.

Import the * .reg file

If you have a computer that uses the ideal configuration, it is possible to extract the .reg registry file from it so that it can be applied to all other computers in the domain.

See also  How do I turn off the webcam using Group Policy or Registry Editor in Windows 10?

Export the reg file

To get started, open Registry Editor on the witness computer and navigate to the branch you are looking for. Right-click, and then click Recovered.

Convert the reg file to XML

A previously decompressed reg file must be converted to XML in order to be added to the GPO. To do this, you have two solutions: you can use an online converter like one Reg2GPP or use a PowerShell script with the syntax: powershell -file RegToXML.ps1 -regpath NomFichierReg.reg -xmlpath output.xml.

After the file is converted, copy it to a server that has a GPO management console.

Use an XML file in the GPO

Copy the XML file from the server and paste it into a tab Register GPO.

Therefore, the keys in the XML file are imported and copied to all computers that use the GPO.

About the author


Leave a Comment