Active Directory – Group Policy Report

If you want to quickly sort or filter the GPOs in the Active Directory by name or by enabled computer or user GPO settings, it is best to use Powershell.

Group Policy Report

For a Group Policy assessments which involve many GPOs, I should filter be able to filter by terms or settings and where those settings are then only enabled for computers and where for users.

With the following Powershell script, some patience and love for Excel you can build a Group Policy Report. This report can run for minutes in large environments. This is depending on the number of GPOs, the available network bandwidth and latency.

My Script

This is my script:

# Retrieve all GPOs (not all GPO Reports!)
$AllGpos = Get-GPO -All
# Create a custom object holding all the information for each GPO component Version and Enabled state
$GpoVersionInfo = foreach ($g in $AllGpos) {
    [xml]$Gpo = Get-GPOReport -ReportType Xml -Guid $g.Id
    [PSCustomObject]@{
        "Name" = $Gpo.GPO.Name
        "Comp-Ad" = $Gpo.GPO.Computer.VersionDirectory
        "Comp-Sys" = $Gpo.GPO.Computer.VersionSysvol
        "Comp Ena" = $Gpo.GPO.Computer.Enabled
        "User-Ad" = $Gpo.GPO.User.VersionDirectory
        "User-Sys" = $Gpo.GPO.User.VersionSysvol
        "User Ena" = $Gpo.GPO.User.Enabled
    }
}
# See the result
$GpoVersionInfo | Sort-Object Name | Format-Table -AutoSize -Wrap

I always copy the Powershell output into the text tool of my choice “Notepad++“, but you can of course create a CSV from it and then use it in Excel for all kinds of things.

Conclusion

Be prepared to use basic tools for Group Policy Reports and Assessments. I try to not rely too much on fancy tools as most assessments I am doing are in critical areas. If you can use tools, I do recommend to use the Active Directory Management Tool.

I would have recommended AGMP – Advanced Group Policy Management, but this has been announced as End of Life April 2026. If you are still using it, I do recommend evaluating options to replace it as part of your Windows Server 2025 strategy.

If you haven’t been using it so far, I do recommend the Microsoft Portal “Group Policy Search” to get prepared for the review.

Group Policy Report
Microsoft Portal “Group Policy Search” searching for RDP for Group Policy Report

Spread the knowledge
Avatar for Andreas Hartig
Andreas Hartig - MVP - Cloud and Datacenter Management, Microsoft Azure

Related Posts

dragon it system engineer grc benchmark

Windows DNS Performance Testing

DNS issues don’t always show up as clear outages. Often they show up as annoying browser behaviour like “random delays on first page load”, “sometimes it works, sometimes it spins”, … Read more

Spread the knowledge
Read more
IT Security Dragon reading Windows Event Logs

Windows Server Event Log and Event Log Policies

Windows Server Event Log for most teams are only used when something already smells like incident:💥 DC misbehaving,💥 file server “mysteriously slow”,💥 SOC asking for “all the logs you have … Read more

Spread the knowledge
Read more
notepad addons 2025 hero

Notepad++ – Most important AddOns 2025

Notepad++ is my favourite notebook and editor is actually perfect, but it can always be better. For this reason, there are a few “quality of life” improvements that I use … Read more

Spread the knowledge
Read more
Technitium DNS Server on Windows

Homelab – Build a robust DNS foundation – Part 2 using Technitium DNS Server on Windows

Let’s create an improved version of the Technitium DNS server for Windows. Some time ago, I wrote a DNS guide to help you get started with your home laboratory. This … Read more

Spread the knowledge
Read more
Tinyproxy and a dragon IT architect from the shadowrun world looking at a large screen with graphs on it

Tinyproxy on Hyper-V – new Ubuntu 24.04

A Linux VM with Proxy, such as tinyproxy, can be used to reduce bandwidth as it caches frequently requested websites. Today we want to configure a Linux VM with a Proxy and deploy … Read more

Spread the knowledge
Read more
COM Port Management and a dragon IT architect from the shadowrun world looking at a com port and a manufacturing floor

Windows – easy COM Port Management without Admin Rights with Windows 10 & 11

COM Port Management with no administrator rights is a challenge. You might have noticed that I am currently involved in IT and OT discussions. During OT modernization, I encountered a … Read more

Spread the knowledge
Read more