• Trace:

This is an old revision of the document!


windows 11 create short to Windows Terminal on Desktop
# download the ico
$myurl="https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico"
iwr -OutFile "$env:LOCALAPPDATA\\wt.ico" -uri $myurl
 
# create shortcut
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$env:USERPROFILE\Desktop\Windows Terminal.lnk")
$Shortcut.TargetPath = "$env:LOCALAPPDATA\Microsoft\WindowsApps\wt.exe"
$ShortCut.IconLocation = "$env:LOCALAPPDATA\\wt.ico";  
$Shortcut.Save()
pub/windows_11_create_short_to_windows_terminal_on_desktop.1645209585.txt.gz ยท Last modified: 2022/02/18 18:39 by derek