PowerShell Set TaskBar Shortcut Windows 10/11
- Pin Shortcut/Application.
- Unpin Shortcut/Application.
Get-Help .\TBPin.ps1 -full
Add-TaskbarPin "$env:Windir\Notepad.exe"
Remove-TaskbarPin "$env:Windir\Notepad.exe"
powershell -ExecutionPolicy Bypass -command "& { . .\TBPin.ps1; Add-TaskbarPin '%windir%\Notepad.exe' }"
powershell -ExecutionPolicy Bypass -command "& { . .\TBPin.ps1; Add-TaskbarPin (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(default)' }"
powershell -ExecutionPolicy Bypass -command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/DanysysTeam/PS-TBPin/main/TBPin.ps1'));Add-TaskbarPin '%windir%\Notepad.exe' }"
See CHANGELOG.md
Usage is provided under the MIT License.
Copyright © 2023, Danysys.