forked from gangstanthony/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pulseway_Desktop_Icon.ps1
22 lines (22 loc) · 998 Bytes
/
Pulseway_Desktop_Icon.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<#
==============================================================================
Create Desktop Icon to Pulseway Support Request
============+=================================================================
Created: [05/17/2018]
Author: Ethan Bell
==============================================================================
Modified:
Modifications:
==============================================================================
Purpose: Create a desktop icon in public profile for Pulseway Support Request
Filename: Pulseway_Desktop_Icon_Support.ps1
==============================================================================
#>
$TargetApplication = "C:\Program Files\Pulseway\pcmontask.exe"
$TargetArguments = " support"
$ShortcutFile = "$env:Public\Desktop\Get Support.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetApplication
$Shortcut.Arguments = $TargetArguments
$Shortcut.Save()