Showing Warning State in Taskbar Button

by Jan 11, 2023

When your script needs attention, i.e. asking for user input, let’s turn its taskbar button in the Windows taskbar orange so the user immediately knows that it is time to look after your script.

All you need is install this module:

Install-Module -Name PsoProgressButton -Scope CurrentUser

Next, set a progress bar value and turn it red:

Set-PsoButtonProgressState -ProgressState Paused
Set-PsoButtonProgressValue -CurrentValue 100   

To turn the indicator off again, run this:

PS> Set-PsoButtonProgressState -ProgressState NoProgress   

Tweet this Tip! Tweet this Tip!