2023-10-03 08:18:00 +00:00
|
|
|
#Function to create shortcuts
|
|
|
|
function Add-Shortcut ($Target, $Shortcut, $Arguments, $Icon, $Description) {
|
|
|
|
$WScriptShell = New-Object -ComObject WScript.Shell
|
|
|
|
$Shortcut = $WScriptShell.CreateShortcut($Shortcut)
|
|
|
|
$Shortcut.TargetPath = $Target
|
|
|
|
$Shortcut.Arguments = $Arguments
|
|
|
|
$Shortcut.IconLocation = $Icon
|
|
|
|
$Shortcut.Description = $Description
|
|
|
|
$Shortcut.Save()
|
2022-12-31 10:15:10 +00:00
|
|
|
}
|