Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED URL shortcut with custom icon can't be this hard (surely)

  • Thread starter Thread starter wizardry
  • Start date Start date
  • Replies Replies 2
  • Views Views 3K
Status
Not open for further replies.

wizardry

New Member
Messages
2
Reaction score
1
Points
1
Hi all, I have created a simple one-liner to copy a pre-created URL shortcut to my Intune devices. The script creates the shortcut just fine (and it works) but it does not use the icon that the original shortcut uses. How do I get the chosen icon to appear instead of a blank icon at the shortcut?
Script is simple: Copy-Item "CustomShortcut.url" C:\Users\Public\Desktop
 
My way was a bit longer.
  1. Created the shortcut on a source device.
  2. Copied the icon file to a generic folder (C:\icons)
  3. Ensured that the shortcut on the source pointed to the icon file in that location
  4. Created PS1 or BAT file that copied the shortcut and icon file
 
Status
Not open for further replies.

Forum statistics

Threads
7,212
Messages
28,138
Members
18,406
Latest member
mohammedimranh

Latest posts

Trending content

Back
Top