-
Notifications
You must be signed in to change notification settings - Fork 15
Add‑ChocolateyPin
dscbot edited this page Oct 23, 2025
·
1 revision
Add a Pin to a Chocolatey Package
Add-ChocolateyPin [-Name] <String> [[-Version] <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]
Allows you to pin a Chocolatey Package like choco pin add -n=packagename
Add-ChocolateyPin -Name 'PackageName'
Add-ChocolateyPin -Name 'PackageName' -Version '1.0.0'
Name of the Chocolatey Package to pin. The Package must be installed beforehand.
Type: String
Parameter Sets: (All)
Aliases: Package
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis allows to pin a specific Version of a Chocolatey Package. The Package with the Version to pin must be installed beforehand.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Add-ChocolateyPin
- Compare-ChocolateyPackage
- Disable-ChocolateyFeature
- Disable-ChocolateySource
- Enable-ChocolateyFeature
- Enable-ChocolateySource
- Find-ChocolateyPackage
- Get-ChocolateyCommand
- Get-ChocolateyFeature
- Get-ChocolateyPackage
- Get-ChocolateyPin
- Get-ChocolateySetting
- Get-ChocolateySource
- Get-ChocolateyVersion
- Install-ChocolateyPackage
- Install-ChocolateySoftware
- Register-ChocolateySource
- Remove-ChocolateyPin
- Set-ChocolateySetting
- Test-ChocolateyFeature
- Test-ChocolateyInstall
- Test-ChocolateyPin
- Test-ChocolateySetting
- Test-ChocolateySource
- Uninstall-Chocolatey
- Uninstall-ChocolateyPackage
- Unregister-ChocolateySource
- Update-ChocolateyPackage