
If the shortcut is missing or deleted it gets automatically (re)created.Everything is user based (local userprofile).This solution works when the desktop is redirected with OneDrive Known Folder Move.I documented this for the new Microsoft Edge based on chromium here.

In order to work with the redirected desktop to OneDrive with Known Folder Move we can take advantage of the ::GetFolderPath("Desktop") method to resolve the desktop location.

Based on the Win32 app configuration the shortut get’s either created on the users personal desktop or on the allusers desktop. You can find a prepackaged Intune Win32 app file of the “CreateDesktopIcon.ps1” script on my GitHub repository available for download. Optional: Custom icon file for the shortcut (URL, UNC) Optional: Create start additional start menu shortcut Target path for your shortcut (URL, UNC) (file/folder) The PowerShell script supports the following command line parameters: Parameter You can also wrap the scripts by yourself by using the IntuneWinAppUtil.exe available as download here.
