less than 1 minute read

Tekst…

$TargetFile = "C:\Program Files\Remote Desktop\msrdcw.exe"
$ShortcutFile = "$env:public\Desktop\Tredion Cloud.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$shortcut.IconLocation="C:\Program Files\Remote Desktop\msrdc.exe"
$Shortcut.Save()