Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to back up GPOs

Join us in this tutorial and discover how to back up GPOs so that you can save them for future deployments, redeploy them in other environments, or survive disasters.

Usually, we use GPOs to **develop configurations centrally ** and then deploy them to the computers, thus making the administrator's interaction with the end devices minimal, achieving a considerable reduction in administrative time as well as the ability to make changes across the entire infrastructure dynamically.

In this tutorial, as it could not be otherwise, we will not only make the backup, but we will also restore it, dividing this tutorial into:

  • Prerequisites and recommendations.

  • Step 1. Back up all GPOs.

  • Step 3. Restore a GPO backup.

  • Step 3. Restore a GPO backup.

How to back up GPOs?

Prerequisites and recommendations:

To successfully complete this tutorial and be able to back up GPOs it will be necessary to:

  • Be registered on the Platform and be registered on it after logging in{target="_blank" rel="noopener"}.

  • Have a Windows Server machine with AD DS Server installed.

  • An account with administrator permissions.

Step 1. Back up all GPOs

The first thing to do is access "Group Policy Management" or Group Policy Administrator in order to access the settings and make the backup.

To do this, we open Run, for example by pressing "Windows + R", or typing "gpmc.msc" in the Run bar (1), then you must click on the program shown (2).

Step 1. We launch the Group Policy Management console to back up all GPOs

Once inside the "Group Policy Management" console, the tree must be expanded to reach the GPO settings; to do this, expand "Forest > Domains > Domain > Group Policy Objects" (3) Where "Domain" must be replaced with the name of the domain being worked on.

Once the path is located, you must click on "Group Policy Objects" and select "Back Up All..."(4) to access the backup console.

Step 1. We will expand the GPM tree to Group Policy Object and launch the backup of all GPOs

At this point we will see the "Back Up Group Policy Object" pop-up window in which you must fill in the path where you want the backup to be saved (5), and where you can click "Browse..." to browse and select the path.

In addition, you can give a description (6), which is more than sufficient.

Once everything is filled in, you must click "Back Up" (7) to launch the backup operation.

Step 1. We provide the location and name for the backup

At this point we will have a window in which the backup progress can be seen (8) through the classic progress bar; in addition, information about the progress can be seen in text mode.

When the backup process finishes, a summary can be seen (9), showing those that were completed successfully and those that failed.

Once everything has been reviewed, you must click "OK" (10).

Step 1. We wait while the backup is made and review the result

At this point, it is advisable to go to the path where we made the backup and check that everything is available.

Step 1. We check that the backup files have been generated in the backup path

With this, everything should be finished.

Step 2. Back up a single GPO

In this case, we start from the assumption that the reader is outside the applications, so, again, the first thing to do is access "Group Policy Management" or Group Policy Administrator in order to access the settings and make the backup.

To do this, we open Run, for example by pressing "Windows + R", or typing "gpmc.msc" in the Run bar (11), then, you must click on the program shown (12).

Step 2. We launch the Group Policy Management console to back up a GPO

Once inside the "Group Policy Management" console, the tree must be expanded to reach the GPO settings; to do this, expand "Forest > Domains > Domain > Group Policy Objects" (13) Where "Domain" must be replaced with the name of the domain being worked on.

Once the path is located, you must go to the central panel and select the GPO you want to back up (14) and by clicking on it, you must select "Back up..." (15).

Step 2. We select the GPO that interests us and launch the backup

In the pop-up window you must fill in the path where you want the backup to be saved, and where you can click "Browse..." (16) to browse and select the path.

You must give a description to each backup task (17) in order to manage it better, and once everything is filled in you must click "Back Up" (18) to launch the backup operation.

Step 2. We provide the backup data and launch the backup

At this point we will have a window in which the backup progress can be seen through the classic progress bar. In addition, information about the progress can be seen in text mode. When the backup process finishes, a summary of the execution can be seen.

Step 2. We wait while the backup is made

Again, it is desirable to validate that the backup has been made by accessing the path where the backups are located.

Step 2. We check that the backup files have been generated in the backup path

With this, the operation will be complete.

Step 3. Restore a GPO backup

Now that we know how to make backups, we must learn how to reverse them, or, rather, how to restore them.

To begin, you must access the console, which is the same one we have used throughout this article. To do this, we must press "Windows + R", or type "gpmc.msc" in the Run bar.

After this, the tree must be expanded to reach the GPO settings; to do this, expand "Forest > Domains > Domain > Group Policy Objects" (19) Where "Domain" must be replaced with the name of the domain being worked on.

On the window you must right-click and select "Manage Backup" (20).

Step 3. We launch the management of GPO backups

In the pop-up window called "Manage Backups" you can click "browse..." (21) to access the folder where the backups from which you want to restore the GPO are stored.

You will have to select the GPO (22) to restore.

At this point, you can check the option "Show only the latest version of each GPO" (23) to see only the latest backup of each GPO.

At this point you can perform the following options:

  • Restore (24) will allow you to restore the policy.

  • Delete (25) will delete the selected GPO.

  • View Settings (26) shows the policy settings.

  • Close (27) will close the restore window

In our case you must click "Restore" (24).

Step 3. We check the options before clicking restore

If restoration is selected, a pop-up window will appear in which you must click "Ok" (28) to confirm the decision.

Step 3. We will have to validate that we want to restore the selected GPO

With this, the restoration will be launched.

Conclusions

As can be seen in this tutorial, you can back up GPOs to** ensure disaster survivability, **improve future deployments, etc.

To complete this information, we recommend that you visit the following operations that can be carried out based on Group Policies, such as, for example:

And remember that if you have problems, you can contact us and we'll give you a hand.

Thanks for joining us!

Last updated

Was this helpful?