GPO Reports

We know that a nice HTML or XML report can be generated for each GPO from inside GPMC, simply by right-clicking on the GPO. Is there a way to get that same report via PowerShell? Of course! Here is a command to generate the HTML report from MyNewGPO:

Get-GPOReport -Name MyNewGPO -ReportType HTML -Path C:\GPO_Reports\MyNewGPO.html

Looking inside the C:\GPO_Reports folder on my workstation, I can see and double-click on this new HTML report to view information about MyNewGPO inside a browser window:

Now, what if we combine what we know about Get-GPOReport with our previous examples of the Get-GPO cmdlet? Would it perhaps be possible ...

Get Mastering Windows Group Policy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.