Export GPO Settings

By | 2022-08-25

Exports all GPO’s across domains in HTML or XML file.

Import-Module GroupPolicy

# Export to HTML
Get-GPOReport -All -ReportType html -Path C:\GPO\Export\report.html

# Export to XML
Get-GPOReport -All -ReportType xml -Path C:\GPO\Export\report.xml

Note: XML report can be opened in Excel. File -> Open, and choose the XML file. Excel will prompt on how to open the file, choose ‘As an xml table’.

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.