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_ReportsMyNewGPO.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 to generate a GPO report of all GPOs that exist in my environment? Sure enough, that is also easily done by adding one simple switch to Get-GPOReport, as seen here:

Get-GPOReport -ALL -ReportType HTML -Path C:GPO_ReportsAllGPOs.html

What a quick and easy way to document everything about your Group Policy objects, with one simple PowerShell command!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.42.99