Display all Group Policy items as HTML
Ever created a lot of nice group policy items and come back to them a year or two later and think “Well where did I apply that firewall rule?” or “Where do I set up servers as Remote Desktop Session hosts?” ?
Powershell saves the day once again.
On a Domain Controller, import the AD Group Policy module
Import-Module GroupPolicy
Then,
Get-GPO -All | ForEach-Object {Get-GPOReport -Guid $_.Id -Path ($_.DisplayName + ".html") -ReportType HTML}
This gives you a nice collection of HTML files in the folder where you executed the script. They will contain the defined elements of your Group Policy item.
This tip is mostly useful in you have large generic GP items like “Windows Server” or “Customer Server”. I have learnt to keep my GP items simple-stupid, like “Firewall Allow TCP 80 Inbound” or “Allow Remote Desktop Connections”