View number of Group Polices in AD via Powershell

By |2017-12-11T14:11:24+00:00July 24th, 2012|PowerShell|0 Comments

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

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.