?
Solved

Internet Shortcut in Script Won't Save Icon

Posted on 2011-04-22
3
Medium Priority
?
589 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)
0
Comment
Question by:tjking45
  • 2
3 Comments
 

Expert Comment

by:itbamiami
ID: 35451984
does the icon issue happen after the shortcut is deployed or while it's sitting on the \shortcuts\ folder?
0
 

Author Comment

by:tjking45
ID: 35461588
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.
0
 

Accepted Solution

by:
itbamiami earned 200 total points
ID: 35462485
might this be of any help:link

I remember trying to accomplish something like this a few years ago.  I think I used a script that would let me change the path of the shortcut location.  I'll if I have that saved somewhere tomorrow at work.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question