Showing Error State in Taskbar Button

by Jan 9, 2023

When your script runs into an error, wouldn’t it be nice if the error state could be visually communicated via taskbar button? If the taskbar button turns red, you’d immediately know 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 Error 
Set-PsoButtonProgressValue -CurrentValue 100   
 

To turn the indicator off again, run this:

 
PS> Set-PsoButtonProgressState -ProgressState NoProgress 
 


Tweet this Tip! Tweet this Tip!