Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Create URL desktop shortcut with customized .ico

I want to use PDQ Deploy to push a desktop shortcut to an internal site on all users PC's. The URL and .ico are two separate files. Problem is every time the shortcut is made, it reverts to the generic .ico. How do we get this to keep the new .ico?

3

Comments

4 comments
Date Votes
  • I just tested this. Works as advertised, with some minor tweaking. We use Folder Redirection and the Desktop gets redirected to our users' Home Directories. Modified the above to reflect that new location, and had a successful result.

    1
  • I am wanting to do the same thing for our school's help desk ticketing system. I want our school mascot for the .ico and the url for the helpdesk to the shortcut. I think I have part of it down but I can't seem to get the icon to stick.

    0
  • Ditto!

    0
  • Why not use a Powershell script for this that you can deploy? 

    Something like:

     

    $WshShell = New-Object -comObject WScript.Shell
    $Shortcut = $WshShell.CreateShortcut("%USERPROFILE%\Desktop\Shortcut.lnk")
    $Shortcut.TargetPath = "http://helpdesk/"
    $Shortcut.IconLocation="C:\helpdeskicon.ico"
    $Shortcut.Save()

    Haven't tested it, but that should work I guess.

    0