Aug 31 2021 06:25 AM
Hi all,
How to I create desktop shortcuts via intune? Which go to specific sites?
Any ideas?
Sep 08 2021 06:33 AM - edited Sep 08 2021 06:35 AM
I have changed the interactive permission to modify and it worked by running manually on the device which didnt work with this script before! Can I add something in the script to enable this
Sep 08 2021 06:57 AM
SolutionSep 08 2021 07:48 AM
Sep 08 2021 10:24 AM
So now the icon works manually after deploying the script which I got from your blog which allows permission to the public desktop! but I am still unable to deploy the destopicon / link from intune !
The script is the same i use manually (which you have posted in this thread) :
$null = $WshShell = New-Object -comObject WScript.Shell
$path = "C:\Users\Public\Desktop\youtube.url"
$targetpath = "https://www.youtube.com"
$iconlocation = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
$iconfile = "IconFile=" + $iconlocation
$Shortcut = $WshShell.CreateShortcut($path)
$Shortcut.TargetPath = $targetpath
$Shortcut.Save()
Add-Content $path "HotKey=0"
Add-Content $path "$iconfile"
Add-Content $path "IconIndex=0"
The script settings on intune: (assignment group are devices)
Is ther anyway to find out why this is failing:
Or is there another way around this maybe deploying the actual .ps1 to a folder using intune and then get a script to run it? is this possible as running it from the device actually works!
Sep 08 2021 10:51 PM