Skip to content
Skatterbrainz edited this page May 13, 2019 · 1 revision

Examples

Get comments for all GPOs in the current AD domain:

Get-GPOComment -GPOName '*' -PolicyGroup 'Policy'

Get comments for all Settings in every GPO in the current AD domain:

Get-GPOComment -GPOName '*' -PolicyGroup 'Settings'

Get comments for all GPO Preferences in the current AD domain:

Get-GPOComment -GPOName '*' -PolicyGroup 'Preferences'

Notes

You can easily pipe the output of the examples shown above to whatever you need. For example, Out-File

Clone this wiki locally