-
Notifications
You must be signed in to change notification settings - Fork 15
ChocolateySetting
dscbot edited this page Oct 23, 2025
·
3 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| Name | Key | System.String | Name - the name of the Setting. | |
| Ensure | Write | Ensure | Indicate whether the Chocolatey Setting should be enabled or disabled on the system. |
Absent, Present
|
| Value | Write | System.String | Value - the value of the Setting, if ensure is set to present. When Ensure is absent, the setting's value is cleared. | |
| Reasons | Read | ChocolateyReason[] |
Chocolatey lets you set or unset general Settings. This resources lets you set or unset a Setting.
This is an unofficial module with DSC resource to Install and configure Chocolatey.
configuration Example
{
Import-DscResource -ModuleName Chocolatey
Node localhost {
ChocolateySetting ChococacheLocation {
Ensure = 'Present'
Name = 'cacheLocation'
Value = 'C:\Temp\Choco'
}
}
}- 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