Given that the Description property of the Get-GPO cmdlet has a Set method, this can be done with a simple one-liner.
Powershell has an easy to use and built-in cmdlet named Write-Progres. However, displaying the PercentComplete parameter seems sometimes cumbersome. Fortunately, most of the time, you need a progress bar when you are inside a foreach loop. This makes it easy to handle because the object you enumerate has a Count and an IndexOf properties. Basic … Continue reading How to write a one-liner progress bar