We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Internet Shortcut in Script Won't Save Icon

tjking45
tjking45 asked
on
Medium Priority
599 Views
Last Modified: 2012-05-11
I have a script that pushes various icons for executables to our employees' desktops.  Normally I change the icon of the shortcut to the path of an icon that everyone has access to.  This works fine.

Now, I am trying to add an Internet Shortcut but the icon remains blank.  When I try to change the icon on the server, it changes but the path of the icon will return to the default Windows path (%systemroot%\system32\SHELL32.dll).

Why won't it keep the icon?

Working icons... Script says...
AddIcon "\\server\Shortcuts\", "Shortcut.lnk", ""
I right-click the shortcut and Change Icon to \\server\Shortcuts\ShortcutIcon.ico

The one I'm having problems with...
AddIcon "\\server\Shortcuts\", "URLShortcut.url", ""
I right-click the URL and Change Icon and it always returns to %systemroot%\system32\SHELL32.dll)
Comment
Watch Question

does the icon issue happen after the shortcut is deployed or while it's sitting on the \shortcuts\ folder?

Author

Commented:
The issue is a little different than first described.

When it is sitting in the shortcuts folder, the icon itself updates fine, yet when I click on the Change Icon button, the path shows the default system location.  The correct icon remains.  

I have found that if I wait long enough, the workstation will eventually pick up the correct icon if they are running XP.  On the Windows 7 machines, it is a crapshoot whether or not the correct icon will show up.

It's hard to describe what is going on because nothing is really consistent.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.