Jump to content
Dennis Cox

Delete Desktop Short Cut

Recommended Posts

My predecessor had created a script that would install a desktop link to our help desk. We no longer use this solution and I want to have the shortcut removed from every device. I can't seem to find a script to do this. I hope someone could help.


This is the script that he had used:
@echo off
md C:\icon
copy "\\edmws001\image\Nortrux_Helpdesk_icon.ico" "c:\icon"
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Administrators:F
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Users:F
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant INTERACTIVE:F
attrib -R  "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk"
copy "\\edmws001\image\Nortrux IT Help Desk.lnk" "C:\Users\Public\Desktop"
attrib +R  "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk"
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Users:R
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Administrators:R
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant INTERACTIVE:R
icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant SYSTEM:F

Share this post


Link to post
Share on other sites

Hello Dennis,

You can remove the link from numerous machines at the same time by creating a script containing the below line and executing it on the desired scope of machines using task.

Remove-Item 'C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk' -force

For more information on the subject of creating and running scripts through Pulseway, please click here

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By John @ Maven
      I am having issues with pulsewaycredentialprovider.dll stopping the Windows login screen from loading on Windows 10 1809.
      I have submitted a ticket to support at support@pulseway.com as well.
      The issue is that with Pulseway software installed and the credential provider loading the system boots to the displayed screen but will go no further.  I am able to run terminal and PowerShell commands from the web interface (prior to software uninstall) but can never log in.  Pulseway remote does not work either.
      This is happening on two Windows 10 1809 DELL Optiplex computers with fresh Windows 10 PRO installations.
      RIght now our only solution is to leave Pulseway uninstalled.
      Any information or solution helpful.
      Thanks.
      John


    • By flydev
      Hi,
      On the Windows Dashboard 6.1 (build 1113) the up-time display is quite strange - I love precision but 
       

    • By Jude
      We receive automated alerts as tickets but would also like to receive them in emails. What level of integration is supported and if it is, where can I find that option in the dashboard?
    • By dpbklyn
      Is there a way to monitor the temperature on a machine on an on-going (or logged) basis?  I would like to set a notification to be sent when the Core Temp reached xx degrees. I see that it is monitored in the hardware section, but i can't find a place to trigger an event.
      Thakn you,
×