> For the complete documentation index, see [llms.txt](https://docs.plenit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plenit.com/docs-en/support/tutorials/windows/how-to-back-up-gpos.md).

# 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](https://admin.jotelulu.com/){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).

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FbrZHmHW67mWVVxUTBIO7%2F01_Paso-1.-Lanzamos-la-consola-de-administracion-de-politicas-de-grupo-para-hacer-copia-de-todas-las-GPO.png?alt=media&amp;token=9dc61d0e-eb49-4771-8836-d0d2eff1d1b0" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FNumVZ4Xa21CspgW5BcLM%2F02_Paso-1.-Desplegaremos-el-arbol-de-GPM-hasta-Gropu-Policy-Object-y-lanzaremos-la-copia-de-todas-las-GPO.png?alt=media&amp;token=e07a7a37-e57b-4401-bc6d-f140e2dae32d" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FV1IWVVj6s2gkFoLk7zhi%2F03_Paso-1.-Proporcionamos-la-localizacion-y-el-nombre-para-la-copia-de-seguridad.png?alt=media&amp;token=e91741b3-ca61-4482-8fe5-f85b66229a63" alt=""><figcaption></figcaption></figure>

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).

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fj52xuavrP2nLuQGgOdli%2F04_Paso-1.-Esperamos-mientras-se-hace-la-copia-y-revisamos-el-resultado.png?alt=media&amp;token=918e8ad9-e884-4639-8030-4ded81f8b9a0" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2F6ISmXf3gmtW5jNJL3sEw%2F05_Paso-1.-Comprobamos-que-los-ficheros-de-copia-de-seguridad-se-han-generado-en-la-ruta-del-backup.png?alt=media&amp;token=ea2c6011-bd7b-4f74-ad84-0ef385b213ff" alt=""><figcaption></figcaption></figure>

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).

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FBXTvdwTO5Ow6s9qQq1js%2F06_Paso-2.-Lanzamos-la-consola-de-administracion-de-politicas-de-grupo-para-hacer-copia-de-una-GPO.png?alt=media&amp;token=0bb1edcd-408a-4aba-be4b-b9408956af2c" alt=""><figcaption></figcaption></figure>

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).

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FNCQZHsu17SLo1jpEE8Tw%2F07_Paso-2.-Seleccionamos-la-GPO-que-nos-interesa-y-lanzamos-el-backup.png?alt=media&amp;token=bcc56bbd-ed53-4b64-888e-d3bb40810e5f" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FqM6t9r8N7ynnO5uVUvPJ%2F08_Paso-2.-Damos-los-datos-del-backup-y-lanzamos-la-copia.png?alt=media&amp;token=f277f63f-fe8c-4e9b-894e-08a267d02095" alt=""><figcaption></figcaption></figure>

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**.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FfDTK1fQX7VNwZmU4j6Yb%2F09_Paso-2.-Esperamos-mientras-se-hace-la-copia-de-seguridad.png?alt=media&amp;token=ef50e22b-db53-4307-ac2b-4d5945f30a59" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FF2FVvnofJBRI6rQ1HYGP%2F10_Paso-2.-Comprobamos-que-los-ficheros-de-copia-de-seguridad-se-han-generado-en-la-ruta-del-backup.png?alt=media&amp;token=8383eec0-1b3b-4026-a5f6-21e39e191605" alt=""><figcaption></figcaption></figure>

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).

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FBA1xnZUlI8QvJ27qGn0l%2F11_Paso-3.-Lanzamos-la-gestion-de-los-backups-de-GPO.png?alt=media&amp;token=2e4bda10-8be1-40a3-b202-4e43154c8c1f" alt=""><figcaption></figcaption></figure>

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).

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FOEMegY6r3xmnZptSm5bo%2F12_Paso-3.-Comprobamos-las-opciones-antes-de-dar-a-restore.png?alt=media&amp;token=fa27ed66-d8a4-4bfa-ac12-f9650fed459e" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2F1HyIPgkMtb188nfNGE0K%2F13_Paso-3.-Deberemos-validar-que-queremos-recuperar-la-GPO-seleccionada.png?alt=media&amp;token=fb2dece2-0128-484f-b7ec-c2c72446317d" alt=""><figcaption></figcaption></figure>

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:

* [What are GPOs and what are they used for](https://jotelulu.com/blog/que-son-y-para-que-sirven-las-gpo){target="\_blank" rel="noopener"}
* [PowerShell commands to manage GPO scripts](https://jotelulu.com/blog/comandos-de-powershell-para-gestionar-gpo-script){target="\_blank" rel="noopener"}
* [How to configure a GPO for mapping shared drives](https://jotelulu.com/soporte/tutoriales/como-configurar-una-gpo-para-el-mapeo-de-unidades-compartidas){target="\_blank" rel="noopener"}
* [How to deploy a GPO script with PowerShell code](https://jotelulu.com/soporte/tutoriales/desplegar-gpo-script-codigo-powershell){target="\_blank" rel="noopener"}
* [How to configure personal drives using a GPO script](https://jotelulu.com/soporte/tutoriales/como-configurar-unidades-personales-mediante-gpo-script){target="\_blank" rel="noopener"}
* [How to configure your firewall using a GPO script](https://jotelulu.com/soporte/tutoriales/configurar-firewall-gpo-script){target="\_blank" rel="noopener"}
* [How to hide access to a disk drive on your server through the local policy editor](https://jotelulu.com/soporte/tutoriales/como-ocultar-el-acceso-a-una-unidad-de-disco-dentro-de-tu-servidor-a-traves-del-editor-de-politicas-locales){target="\_blank" rel="noopener"}

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

Thanks for joining us!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.plenit.com/docs-en/support/tutorials/windows/how-to-back-up-gpos.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
