IT administrators are frequently asked by either their managers or auditors to produce a report that proves all Group Policy settings are correct. To satisfy these requests, IT pros need to quickly export Group Policy settings into an insightful report in an easy-to-read format. They can create acceptable passable reports by running scripts, but this method of Group Policy export requires a great deal of time and effort that could be better spent on more important tasks. 

1. Open PowerShell ISE on your domain controller → Run the following PowerShell script (adjust file path and Domain parameter as needed):

Import-Module ActiveDirectory
Import-Module GroupPolicy
$dc = Get-ADDomainController -Discover -Service PrimaryDC
Get-GPOReport -All -Domain -Server $dc -ReportType HTML -Path C:\Temp\GPOReportsAll.html

2. Open a generated .html file in a browser.

3. Report example:


Originally posted -