Create shortcuts with Powershell

$TargetFile = “<path to exe>”
$ShortcutFile = “$env:Public\Desktop\<name of shortcut>.lnk” #replace url with location it should be placed
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.Save()

Leave a Reply

Your email address will not be published. Required fields are marked *