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?
Answers (1)
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)