Last active
July 12, 2018 20:32
-
-
Save glachancecmaisonneuve/9973fb965b8fa217bfab88191dcc702c to your computer and use it in GitHub Desktop.
DontYouDarePinAnythingToMyTaskbar-Chocolatey-AntiExtension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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