scripts/PowerShell/Scripts/RVM/Windows/New-FileShareDesktopShortcut.ps1 (1 lines of code) (raw):
$LinkPath = Join-Path ([Environment]::GetFolderPath('CommonDesktopDirectory')) 'Research Data File Share.lnk'; $Link = (New-Object -ComObject WScript.Shell).CreateShortcut($LinkPath); $Link.TargetPath = '$TargetPath'; $Link.Save();