Forum Discussion
AB21805
Aug 31, 2021Bronze Contributor
Creating desktop shortcuts
Hi all,
How to I create desktop shortcuts via intune? Which go to specific sites?
Any ideas?
- I guess so.. you can take a look at this blog of mine... it describes how I gave everyone full control to the public desktop... you can use it to change the interactive permissions i guess
https://call4cloud.nl/2021/01/public-desktop-icons-and-adminless-the-far-side-of-intune/
You could take a look at what I did while creating a shortcut to a rdp file on a specific folder. You could skip the rdp part and just change the $targetpath = "c:\program files (x86)\rdp\remoteapp.rdp"
To the website you want
Remote App: The Last Whish - Call4Cloud
Soooo something like this
$null = $WshShell = New-Object -comObject WScript.Shell
$path = "C:\Users\Public\Desktop\call4cloud.url"
$targetpath = "https://www.call4cloud.nl"
$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"- byron7941Copper Contributor
Rudy_Ooms_MVP Many thanks for this !
I find new value every day in your call4cloud blog .Thanks for your contributions to the community ! - AB21805Bronze Contributor
Here is my script but it fails! any ideas? I have put the url in for a sharepoint location (Target path)
- In the screenshot I am missing a " ?
- AB21805Bronze Contributor
Rudy_Ooms_MVP Thank you! I will give this a try! and close once I give it ago!
- Nathan BlasacIron Contributor
I've used Powershell scripts to do this in the past. I did a quick bing search and found someones notes on how to do this
- AB21805Bronze ContributorThank you!