Get a HTML or XML Starter Group Policy Object (Starter GPO) Report using PowerShell using Get-GPOReport
There is a simple Active Directory Group Policy PowerShell cmdlet for getting a HTML or XML report for a Group Policy Object called Get-GPOReport.
This makes life really simple to generate a report however there is no corresponding cmdlet for a Starter Group Policy Object.
These are possible to generate as they can be seen in the Group Policy Management Console when you click on the Settings tab.
To generate the report in PowerShell simply get the Starter GPO with the Get-GPStarterGPO cmdlet and then call the GenerateReport method directly on the object, passing either "HTML" or "XML" depending on the format you require.
$starterGpo = Get-GPStarterGPO -Guid "3C720B80-15F3-4446-BF25-F57548A582CF";
$starterGpo.GenerateReport("XML");
$starterGpo.GenerateReport("HTML");
Why not check out our Group Policy Audit and Documentation Tool?
Comments
Post a Comment