< Back

Set-ChocolateySetting

Mon Jan 13, 2020 1:40 am

NAME Set-ChocolateySetting



SYNOPSIS

Set or unset a Chocolatey Setting





SYNTAX

Set-ChocolateySetting -Name <String> -Value <String> [-WhatIf] [-Confirm] [<CommonParameters>]



Set-ChocolateySetting -Name <String> [-Unset] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Allows you to set or unset the value of a Chocolatey setting usually accessed by choco config set -n=bob value





PARAMETERS

-Name <String>

Name (or setting) of the Chocolatey setting to modify



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Value <String>

Value to be given on the setting. This is not available when the switch -Unset is used.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Unset [<SwitchParameter>]

Unset the setting, returning to the Chocolatey defaults.



Required? false

Position? named

Default value False

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

System.Void





NOTES





https://github.com/chocolatey/choco/wiki/CommandsConfig



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



PS C:\\>Set-ChocolateySetting -Name 'cacheLocation' -value 'C:\\Temp\\Choco'















RELATED LINKS