Support Center

Deploy Desktop Shortcut Icons Policy for Windows via Commands

The command listed in this article is specific to deploying an application shortcut to an existing user's desktop on a Windows system.

 

This is a Powershell specific command.  In a new command window:

  • Select Windows as the operating system
  • Select the "Windows Powershell" option above the command 

 
$s=(New-Object -COM WScript.Shell).CreateShortcut('C:\Users\USERNAME\Desktop\SHORTCUT.lnk');$s.TargetPath='PATH_TO_APPLICATION';$s.Save()
  E.g.:
$s=(New-Object -COM WScript.Shell).CreateShortcut('C:\Users\auser\Desktop\IE.lnk');$s.TargetPath='c:\Program Files\Internet Explorer\iexplore.exe';$s.Save()
 

Last Updated: Sep 29, 2016 03:19PM MDT

Related Articles
31b11a79e2c94470a66430cfe6d3eecd@jumpcloud.desk-mail.com
http://assets3.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete