Forum Discussion
Jesse13579
Jan 15, 2024Brass Contributor
Win32 app installed desktop shortcut with no custom icon
I'm installing a desktop shortcut to all my endpoints. I'm installing it as a win32 app with this script. #Create directory to hold icon file and copy file there New-Item -Path "c:\" -Name "scu...
- Jan 17, 2024Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico ---> Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico" , you mist the last " I think 😉
Jan 15, 2024
Let us know, curious!
Jesse13579
Jan 17, 2024Brass Contributor
Harm_Veenstra I put the ico in the same folder that’s accessible on the share, rebuilt the Intunewin package, and completely removed the app from intune and set it up again. I’m still not getting the custom icon. The shortcut installs on the public desktop just fine. It just doesn’t have the icon.
- Jan 17, 2024Could you show us the contents of the folder and the install script?
- Jesse13579Jan 17, 2024Brass Contributor
The install script.
#Create directory to hold icon file and copy file there
New-Item -Path "c:\" -Name "scut" -ItemType "directory" -Force
Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico#Shortcut creation and specify settings
$Shell = New-Object -ComObject ("WScript.Shell")
$ShortCut = $Shell.CreateShortcut("C:\users\public\desktop\UKG Time.lnk")
$ShortCut.TargetPath="https://poarchbandcreeks-sso.prd.mykronos.com"
#$Shortcut.Arguments="https://poarchbandcreeks-sso.prd.mykronos.com"
$ShortCut.IconLocation = "c:\scut\UKGi.ico";
$ShortCut.Description = "UKG Time";
$ShortCut.Save()Inside the folder.
- Jan 17, 2024Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico ---> Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico" , you mist the last " I think 😉