delete specific pinned icons from the taskbar

here we have a software that people usually pins to the task bar, but the new version of that program has a diferent install route so the shortcut ends up aiming to nothing.

how i can make a script that deletes that pinned icon?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: SMal.tmcc 1 year ago
Red Belt

that pinning exists as

C:\Users\xxxxxxxx\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

you need a script that runs as user to delete from each profile or create a custom inventory rule to do that in the background automatically

This is a CIR I use to delete a link on desktops, you can modify this to do this

ShellCommandTextReturn(cmd /c if exist "C:\Users\Public\Desktop\Configuration Wizard.lnk" del "C:\Users\Public\Desktop\Configuration Wizard.lnk" /q)

something like:

ShellCommandTextReturn(cmd /c if exist "C:\%$appdata%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Google Chrome.lnk" del "C:\%$appdata%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Google Chrome.lnk" /q)

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ