Powershell - How to add and view a GPO description
To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker or make a donation. Thank you!
Hello,
It can be interesting to follow the modifications of GPOs, to add comments and to integrate information which seems useful to you. It is possible to do this from the Group Policy Editor and view the comments from the Details tab of the GPO.
But you can also do it from Powershell.
The Powershell GroupPolicy module is required.
And it can be adapted into a Powershell function which allows you to add a comment while preserving the previous comments. Comments are displayed from the most recent to the oldest. Comments will take the following form comment date (user):
2024-07-25_13:20:35 Rename administrator account (Guillaume)
2024-07-24_10:24:49 Comment test (Guillaume)
Related links
Powershell - How to add and view a GPO description
How to add and view a GPO description in PowershellActive Directory - Viewing and protecting unprotected organizational units with Powershell
Active Directory - Viewing and protecting unprotected organizational units with PowershellPowershell - Testimo module for testing your Active Directory
Testimo is a PowerShell module designed to facilitate basic or more advanced testing of Active DirectoryPowershell - presentation of the GPOZaurr module for analysing your GPOs
The GPOZaurr module allows you to analyse your GPOs and also to modify or even delete themPowershell - AD As Built Report module overview
Microsoft AD As Built Report is a PowerShell module that works in conjunction with AsBuiltReport.Core to generate a report on your Active DirectoryHow to join an Active Directory domain with PowerShell DSC
Joining an Active Directory domain with PowerShell DSC
Follow me on
Support me
Last content
Powershell - View and manage DNS configuration of network interfaces
Powershell - Managing IP configuration of network interfaces
Powershell - Managing the status and configuration of network interfaces
Powershell and the Left Hand Side
Powershell - Managing disks, partitions and volumes
Powershell - Managing System Restore Points in Windows
Powershell - Playing with the Windows clipboard
Powershell - Changing the state of a computer (sleep, hibernate, shutdown, restart)
Powershell - Compress-Archive and Expand-Archive to create and extract ZIP archives