You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/support-tools/scripts-check-and-cleanup-the-agpm-archive.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: Scripts to check and cleanup the AGPM archive that might lead to GPO operation issues
3
-
description: Introduces a script to check and cleanup the AGPM archive that might lead to GPO operation issues.
4
-
ms.date: 04/18/2025
2
+
title: Scripts to Check and Clean the AGPM Archive That Causes GPO Operation Issues
3
+
description: Introduces a script to check and clean up the AGPM archive that might lead to GPO operation issues.
4
+
ms.date: 04/25/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
7
7
ms.topic: troubleshooting
@@ -10,13 +10,13 @@ ms.custom:
10
10
- sap:group policy\group policy management (gpmc or gpedit)
11
11
- pcy:WinComm Directory Services
12
12
---
13
-
# Scripts: Check and cleanup the AGPM archive that might lead to GPO operation issues
13
+
# Scripts: Check and clean up the AGPM archive that might lead to GPO operation issues
14
14
15
15
_Applies to:_ Advanced Group Policy Manager 4.0 SP3
16
16
17
-
The sample script included in this article can assist with archive inconsistencies that lead to errors managing Group Policy Objects (GPOs) within the tool.
17
+
The sample script included in this article can assist with archive inconsistencies that lead to errors in managing Group Policy Objects (GPOs) within the tool.
18
18
19
-
Examples of errors that can occur if there's inconsistent information in the gpostate.xml file.
19
+
Examples of errors that can occur if there's inconsistent information in the **gpostate.xml** file:
20
20
21
21
```output
22
22
Create GPO: Test...Failed.
@@ -30,8 +30,8 @@ Create GPO: Test...Failed.
30
30
Here's what the script does:
31
31
32
32
1. Stops the Advanced Group Policy Management (AGPM) service.
33
-
2. Scans the gpostate.xml file and removes references (if any) to archive GUID folders that don't exist or are incomplete.
34
-
3.If there are any changes detected, the gpostate.xml is renamed with a time stamp and saves a new gpostate.xml file.
33
+
2. Scans the **gpostate.xml** file and removes references (if any) to archive nonexistent or incomplete GUID folders.
34
+
3.Renames the **gpostate.xml** file with a timestamp if any changes are detected and saves a new **gpostate.xml** file.
0 commit comments