-
Notifications
You must be signed in to change notification settings - Fork 15
ChocolateyPin
dscbot edited this page Apr 19, 2023
·
1 revision
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Ensure | Write | Ensure | Indicate whether the Chocolatey Pin should be enabled or disabled for this package. | |
Name | Key | string | ||
Version | Write | string | Version of the Package to pin. | |
Reasons | Read | ChocolateyReason[] |
Chocolatey lets you pin package versions so they don't get updated. This resources lets you set or remove a Pin.
This is an unofficial module with DSC resource to Install and configure Chocolatey.
configuration Example
{
Import-DscResource -ModuleName Chocolatey
Node localhost {
ChocolateyPin AddPintoPackage {
Ensure = 'Present'
Name = 'Putty'
}
}
}
This is an unofficial module with DSC resource to Install and configure Chocolatey.
configuration Example
{
Import-DscResource -ModuleName Chocolatey
Node localhost {
ChocolateyPin AddPintoPackage {
Ensure = 'Present'
Name = 'Putty'
Version = '0.71'
}
}
}
This is an unofficial module with DSC resource to Install and configure Chocolatey.
configuration Example
{
Import-DscResource -ModuleName Chocolatey
Node localhost {
ChocolateyPin AddPintoPackage {
Ensure = 'Absent'
Name = 'Putty'
Version = '0.71'
}
}
}