View number of Group Polices in AD via Powershell

2017-12-11T14:11:24+00:00 July 24th, 2012|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