Export Group Policy for Comparison
To export the group policy from a workstation or server for the purpose of comparing the policy on different machines follow these steps.
- Open Windows PowerShell
- Import-Module GroupPolicy
- Get-GPOReport -All -ReportType xml -Path C:\Temp\GpoReport.xml
- Open Microsoft Excel
- In Excel openĀ C:\Temp\GpoReport.xml
- Select "As an XML table"
- Click OK to Excel creating a schema (if prompted)
- "Some data was imported as text" errors can be ignored
- File->Save As
- Save the file as a CSV
This CSV can now be compared with a different machine's report using a tool like WinMerge.
Ā© 2023 Foray, LLC - All Rights Reserved