/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


delete specific pinned icons from the taskbar

07/30/2019 1526 views

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?


Z





0 Comments   [ + ] Show comments

Comments


All 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)


Answered 08/05/2019 by: SMal.tmcc
Red Belt

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:

Share

 
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