tjking45
asked on
Internet Shortcut in Script Won't Save Icon
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\SHE LL32.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\Shortcu tIcon.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\SHEL L32.dll)
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\SHE
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\Shortcu
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\SHEL
does the icon issue happen after the shortcut is deployed or while it's sitting on the \shortcuts\ folder?
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.