Powershell Custom Desktop Shortcut
Script to create a custom shortcut on the Desktop of client machines.
custom-shortcut.ps1
1
2
3
4
$Shell = New-Object -ComObject ("WScript.Shell")
$Favorite = $Shell.CreateShortcut([Environment]::GetFolderPath("CommonDesktopDirectory") + "\CustomShortcutName.url")
$Favorite.TargetPath = "https://docs.nels.one";
$Favorite.Save()