Skip to content

Instantly share code, notes, and snippets.

@rwb27
Created January 24, 2019 15:15
Show Gist options
  • Save rwb27/95be2ba46e1bd244d695b6afbdcfae94 to your computer and use it in GitHub Desktop.
Save rwb27/95be2ba46e1bd244d695b6afbdcfae94 to your computer and use it in GitHub Desktop.
How to create a shortcut in Windows 10 from PowerShell
$ws = New-Object -ComObject WScript.Shell;
$s = $ws.CreateShortcut('C:\Users\Public\Desktop\RDWorksV8.lnk');
$s.TargetPath = 'C:\Program Files (x86)\RDWorksV8\RDWorksV8.exe';
$s.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment