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