15 Aug 2013 @ 8:24 AM 

Today I was asked to inventory the group policy objects of my customer.
Since there were a few hundred of them, we wanted to know which of them were already disabled and maybe could be deleted.
PowerShelll to the rescue!

(Get-ADForest).domains | Foreach-Object { Get-GPO -All -Domain $_ | Where-Object { $_.GPOStatus -eq "AllSettingsDisabled" } } | Select-Object -Property DisplayName
Posted By: Jeff Wouters
Last Edit: 16 Aug 2013 @ 07:25 AM

EmailPermalink
Tags



 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 310
  • Comments » 437
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Contact



    No Child Pages.

Speaking



    No Child Pages.