February 9th, 2013

PowerTip: Use PowerShell to Find GPOs Without a Description

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to find GPOs without a description.

Hey, Scripting Guy! Question How can I use Windows PowerShell to assist in detecting GPOs that do not have a description?

Hey, Scripting Guy! Answer Use the Get-GPO cmdlet with the –all switch. Pipe the results to the Where-Object and look for an absence of the description property, as shown here.

14:38 C:\> Get-GPO -all | where {-not $_.description} | select displayname, description

 DisplayName                                Description

———–                                ———–

wsus

Default Domain Policy

Default Domain Controllers Policy

Enable WMI Relibility

EnablePSRemoting

BackupOnLogOff

 

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.