{"id":11103,"date":"2011-03-29T07:00:00","date_gmt":"2011-03-29T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2011\/03\/29\/although-the-default-icon-for-a-shortcut-is-the-icon-of-the-target-you-can-override-that\/"},"modified":"2011-03-29T07:00:00","modified_gmt":"2011-03-29T07:00:00","slug":"although-the-default-icon-for-a-shortcut-is-the-icon-of-the-target-you-can-override-that","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20110329-00\/?p=11103","title":{"rendered":"Although the default icon for a shortcut is the icon of the target, you can override that"},"content":{"rendered":"<p>A customer reported that a shortcut they deployed to their employees&#8217; desktops was triggering unwanted server traffic.<\/p>\n<blockquote class=\"q\"><p>  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. <\/p>\n<p> Is there any way to stop Explorer from querying the shortcut information? <\/p>\n<\/blockquote>\n<p> Fortunately, the customer provided context for the question, because the question the customer is asking doesn&#8217;t actually match the scenario. The customer doesn&#8217;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.<\/p>\n<p> 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 <code>IShellLink::SetIconLocation<\/code>; interactively, you view the shortcut&#8217;s properties and click <i>Change Icon&#8230;<\/i>. In either case, set it to an icon that doesn&#8217;t reside on the server. Save the changes and deploy the modified shortcut. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A customer reported that a shortcut they deployed to their employees&#8217; 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 [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-11103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>A customer reported that a shortcut they deployed to their employees&#8217; 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 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/11103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=11103"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/11103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=11103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=11103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=11103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}