PowerShell – Quickly create a GPO report
Posted in Active Directory, PowerShell
Someone asked me today how to easily export a readable report of all GPOs applied to a system (they were doing a security audit and needed a simple way to script this). Of course, I immediately thought of PowerShell! So here is how to export a readable report of all GPOs applied to a given system in PowerShell:
Import-Module GroupPolicy Get-GPOReport -All -ReportType Html -Path C:\Solvia\GPOsReport-complete.htm
Of course, you can also use Get-GPOReport to generate a report for a specific GPO and/or export it as XML if you want to.