Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glachancecmaisonneuve/9973fb965b8fa217bfab88191dcc702c to your computer and use it in GitHub Desktop.
Save glachancecmaisonneuve/9973fb965b8fa217bfab88191dcc702c to your computer and use it in GitHub Desktop.
DontYouDarePinAnythingToMyTaskbar-Chocolatey-AntiExtension
function Register-DontYouDarePinAnythingToMyTaskbar {
param(
[parameter(Mandatory=$true, Position=0)][string] $pathToInstall,
[parameter(ValueFromRemainingArguments = $true)][Object[]] $ignoredArguments
)
Write-Host "Chocolatey-DontYouDarePinSomethingToMyTaskbar Extension prevented an overzealous package manager from pinning a program to your taskbar."
}
New-Alias -Name 'Install-ChocolateyPinnedTaskBarItem' -Value 'Register-DontYouDarePinAnythingToMyTaskbar' -Scope Global
Write-Host "DontYouDarePinAnythingToMyTaskbar extension is preventing overzealous package managers from pinning stuff to your taskbar."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment