-
Notifications
You must be signed in to change notification settings - Fork 15
Set‑ChocolateySetting
dscbot edited this page Oct 23, 2025
·
1 revision
Set or unset a Chocolatey Setting
Set-ChocolateySetting -Name <String> -Value <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-ChocolateySetting -Name <String> [-Unset] [-WhatIf] [-Confirm]
[<CommonParameters>]
Allows you to set or unset the value of a Chocolatey setting usually accessed by choco config set -n=bob value
Set-ChocolateySetting -Name 'cacheLocation' -value 'C:\Temp\Choco'
Name (or setting) of the Chocolatey setting to modify
Type: String
Parameter Sets: (All)
Aliases: Setting
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUnset the setting, returning to the Chocolatey defaults.
Type: SwitchParameter
Parameter Sets: Unset
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseValue to be given on the setting. This is not available when the switch -Unset is used.
Type: String
Parameter Sets: Set
Aliases:
Required: True
Position: Named
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