Skip to content

DanysysTeam/PS-TBPin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell TBPin

Latest Version MIT License Made with Love

PowerShell Set TaskBar Shortcut Windows 10/11

Features

  • Pin Shortcut/Application.
  • Unpin Shortcut/Application.

Usage

Type Get-Help command for information
Get-Help .\TBPin.ps1 -full

Basic Usage

Pin Notepad:
Add-TaskbarPin "$env:Windir\Notepad.exe"
Unpin Notepad:
Remove-TaskbarPin "$env:Windir\Notepad.exe"

Additional Instructions

Pin Notepad to Taskbar from Windows Command Processor (cmd.exe):
powershell -ExecutionPolicy Bypass -command "& { . .\TBPin.ps1; Add-TaskbarPin '%windir%\Notepad.exe' }"
Pin Google Chrome to Taskbar from Windows Command Processor (cmd.exe):
powershell -ExecutionPolicy Bypass -command "& { . .\TBPin.ps1; Add-TaskbarPin (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(default)' }"
Pin Notepad to Taskbar Windows Command Processor (cmd.exe) (Load Script From GitHub Raw URL):
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' }"

Release History

See CHANGELOG.md

License

Usage is provided under the MIT License.

Copyright © 2023, Danysys.

About

Pin/Unpin Taskbar Shortcut

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published