My PowerShell

Windows Powershell scripts, examples, tips, docs …

Exporting All Group Policy Settings

Export 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’.

Tagged as:

Leave a Response