View number of Group Polices in AD via Powershell

Below are a few simple commands you can run to display the number of group polices you have and also the name of all you group policies.

Open PowerShell on a Domain Controller and run “Import-module grouppolicy”

Number of Group Policies
(Get-GPO -All).count

Name of Group Polices
Get-GPO -All | ft displayname

About the author