Forum Discussion

AB21805's avatar
AB21805
Bronze Contributor
Aug 31, 2021
Solved

Creating desktop shortcuts

Hi all, 

 

How to I create desktop shortcuts via intune? Which go to specific sites? 

 

Any ideas? 

25 Replies

  • AB21805 

     

    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"

    • byron7941's avatar
      byron7941
      Copper 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 !

    • AB21805's avatar
      AB21805
      Bronze Contributor

      Hi Rudy_Ooms_MVP 

       

      Here is my script but it fails! any ideas? I have put the url in for a sharepoint location (Target path)

       

  • AB21805 

     

    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

     

    https://www.nickydewestelinck.be/2021/03/09/how-to-deploy-custom-url-shortcuts-with-microsoft-intune/#:~:text=Go%20to%20Devices%20%3D%3E%20Scripts.%20Then%20click%20on,Step%201.%20Leave%20the%20extra%20settings%20as%20default.

     

     

     

Resources