Gets one GPO or all the GPOs in a domain.
Gets one GPO or all the GPOs in a domain.
Example 1: Get a single GPO from a domain
Get-GPO -Name "Group Policy Test"
Example 2: Get a single GPO by GUID
Get-GPO -Guid 31a09564-cd4a-4520-98fa-446a2af23b4b
Example 3: Get all GPOs from a domain
Get-GPO -All -Domain "rs.local"
Get-GPO -All | Select-Object DisplayName, id
Generates a report either in XML or HTML format for a specified GPO or for all GPOs in a domain.
Generates a report either in XML or HTML format for a specified GPO or for all GPOs in a domain.
Example 1: Generate an HTML report for the specified GPO
Get-GPOReport -Name "TestGPO1" -ReportType HTML -Path "C:\GPOReports\TestGPO1_Report.html"
Gets Group Policy inheritance information for a specified domain or OU.
Gets Group Policy inheritance information for a specified domain or OU.
Example 1: Get Group Policy inheritance information for a specific OU
Get-GPInheritance -Target 'ou=MyOU,dc=contoso,dc=com'
Example 2: Get GPOs that are linked to a specific organizational unit by evaluating the SOM object.