joaomaia18
Contributor
Contributor

Shortcut of applications on Desktop (Windows)

Jump to solution

Hello all, good morning! 

I'm new to WS1 managing Windows so... do you guys know how (or maybe some KB, Doc) put a SHORTCUT into the Windows Desktop of some Application and Web Application?

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
ogushia
Enthusiast
Enthusiast

We have deployed App shortcut in customer's environment using Script.
Here is a sample script and configuration:

■App Shortcut
$WsShell = New-Object -ComObject WScript.Shell
$USER = $env:USERPROFILE
$Shortcut = $WsShell.CreateShortcut("$USER\Desktop\iexplore.lnk")
$Shortcut.TargetPath = "C:\Program Files\Internet Explorer\iexplore.exe"
$Shortcut.IconLocation = "C:\Program Files\Internet Explorer\iexplore.exe"
$Shortcut.Save()

■URL Shortcut
$WsShell = New-Object -ComObject WScript.Shell
$USER = $env:USERPROFILE
$Shortcut = $WsShell.CreateShortcut("$USER\Desktop\google.url")
$Shortcut.TargetPath = "https://google.com"
$Shortcut.Save()

 

■Script configuration

ogushia_0-1665148839003.png

 

View solution in original post

0 Kudos
1 Reply
ogushia
Enthusiast
Enthusiast

We have deployed App shortcut in customer's environment using Script.
Here is a sample script and configuration:

■App Shortcut
$WsShell = New-Object -ComObject WScript.Shell
$USER = $env:USERPROFILE
$Shortcut = $WsShell.CreateShortcut("$USER\Desktop\iexplore.lnk")
$Shortcut.TargetPath = "C:\Program Files\Internet Explorer\iexplore.exe"
$Shortcut.IconLocation = "C:\Program Files\Internet Explorer\iexplore.exe"
$Shortcut.Save()

■URL Shortcut
$WsShell = New-Object -ComObject WScript.Shell
$USER = $env:USERPROFILE
$Shortcut = $WsShell.CreateShortcut("$USER\Desktop\google.url")
$Shortcut.TargetPath = "https://google.com"
$Shortcut.Save()

 

■Script configuration

ogushia_0-1665148839003.png

 

0 Kudos