Select Page

Sometimes you want to know how many GPOs you have in a domain. Powershell provides a way to do this quickly and easily. Earlier today I tweeted about the way to do this in Windows 7 or Server 2008-R2, using the Microsoft-provided “GroupPolicy” PowerShell Module. Its as simple as:

(Get-GPO -All).Count

However, if you are not yet on these newer OS versions, you can still get this information from PowerShell. Specifically, my free PowerShell GPMC cmdlets provide nearly identical syntax to the MS ones, but on earlier versions of the OS (i.e. 2008, XP and 2003). The syntax is:

(get-sdmGPO *).Count

Quick, and easy!

Darren