< Back

Add-ChocolateyPin

Mon Jan 13, 2020 1:17 am

NAME Add-ChocolateyPin



SYNOPSIS

Add a Pin to a Chocolatey Package





SYNTAX

Add-ChocolateyPin [-Name] <String> [[-Version] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Allows you to pin a Chocolatey Package like choco pin add -n=packagename





PARAMETERS

-Name <String>

Name of the Chocolatey Package to pin.

The Package must be installed beforehand.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Version <String>

This allows to pin a specific Version of a Chocolatey Package.

The Package with the Version to pin must be installed beforehand.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





https://chocolatey.org/docs/commands-pin



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-ChocolateyPin -Name 'PackageName'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Add-ChocolateyPin -Name 'PackageName' -Version '1.0.0'















RELATED LINKS