PowerTip: Use PowerShell to Find GPOs Without a Description

Doctor Scripto

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

 

 

0 comments

Discussion is closed.

Feedback usabilla icon