Most robust, as it respects Shell links and special folder redirection.

Starting with build 22000, packaged apps launched via desktop shortcut use the new Undocked Taskbar integration; the shortcut invokes ApplicationFrameHost.exe as broker. 5. Method 4: RemoteApps (RDS / Azure Virtual Desktop) For enterprise VDI environments, RemoteApps are published via .rdp files or MSRDC (Microsoft Remote Desktop Client) .

# Find AUMID Get-StartApps | Where-Object $_.Name -like "*MyApp*" $shortcut.TargetPath = "shell:AppsFolder\Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" $shortcut.Save()

remoteapplicationmode:i:1 remoteapplicationprogram:s:Excel remoteapplicationname:s:Excel Remote full address:s:rdsh.contoso.com gatewayhostname:s:rdgateway.contoso.com When double-clicked, Windows 11 treats it as an RDP file, not a traditional LNK. Windows 11 respects Group Policy Preferences (GPP) for shortcut deployment.

$shell = New-Object -ComObject WScript.Shell $shortcut = $shell.CreateShortcut([Environment]::GetFolderPath("Desktop") + "\MyApp.lnk") $shortcut.TargetPath = "C:\Program Files\MyApp\app.exe" $shortcut.Arguments = "--silent" $shortcut.IconLocation = "C:\Program Files\MyApp\app.exe,0" $shortcut.Save()

User Configuration > Preferences > Windows Settings > Shortcuts

When added programmatically, Windows may add an Zone.Identifier alternate data stream (ADS). To suppress SmartScreen warnings: