Although the default icon for a shortcut is the icon of the target, you can override that

Raymond Chen

A customer reported that a shortcut they deployed to their employees’ desktops was triggering unwanted server traffic.

My customer deploys a shortcut on %ALLUSERSPROFILE%\Desktop, and this shortcut points to an EXE file on a remote server. Once a local user logs on, the computer will try logging onto the remote computer to query information and generate a login failure alert on the server.

Is there any way to stop Explorer from querying the shortcut information?

Fortunately, the customer provided context for the question, because the question the customer is asking doesn’t actually match the scenario. The customer doesn’t want to stop Explorer from querying the shortcut information; the customer just wants to stop Explorer from contacting the server to get the icon.

The default icon for a shortcut is the icon of the target, and in order to get that icon, Explorer needs to contact the target. But you can override that default. Programmatically, you call IShellLink::SetIconLocation; interactively, you view the shortcut’s properties and click Change Icon…. In either case, set it to an icon that doesn’t reside on the server. Save the changes and deploy the modified shortcut.

0 comments

Discussion is closed.

Feedback usabilla icon