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 - Export-Csv versus Export-Clixml
Powershell - Overview of Where-Object basic syntax and its limitations
Powershell - Hyper-V - Give a custom name to a virtual network adapter
Powershell - How to add and view a GPO description
Powershell - Displaying and changing the power mode in Windows
Powershell - Adding a line to a file from a specific line
Windows 11 - how to organise your Start menu
Overview of the different types of application in Windows
Windows - Get remote help easily with Quick Assist
How to add and change languages in Windows 10 and Windows 11