Steps below use Windows PowerShell to manage Active Directory Windows Group Policy Objects.
- Command example below returns all GPOs found in the specified Domain:
Get-GPO -All -Domain “TSDOMAIN.local”
- Get-GPO can be used to return general information for a specific GPO. Example below will return general information for the “Team_WP” GPO:
Get-GPO -Name Team_WP
- GPO information can be returned by querying the GPO’s GUID ID; command below is an example:
Get-GPO -Guid cb6fe78f-8b4f-4a77-9320-6a087a9d2bcc -Domain “TSDOMAIN.local”
- Get-GPOReport command below will return a comprehensive report for all domain GPOs found, compiling the information in HTML format for review.
Get-GPOReport -All -Domain “TSDOMAIN.Local” -ReportType HTML -Path “C:\GPOReports\GPOReportsAll.html”
- After running Get-GPOReport an HTML file is created at the file path designated in command above.
- The file when opened will come up as a browser page with extensive detail about all Domain GPOs found.