Get-ChocolateyConfigValue

Get-ChocolateyConfigValue

Get-ChocolateyConfigValue

Retrieve a value from the Chocolatey Configuration file

Syntax

Get-ChocolateyConfigValue `
  -ConfigKey <String> `
  [-IgnoredArguments <Object[]>] [<CommonParameters>]

Description

This function will attempt to retrieve the path according to the specified Path Type to a valid location that can be used by maintainers in certain scenarios.

Notes

Available in 2.1.0+

Aliases

None

Examples

EXAMPLE 1


$value = Get-ChocolateyConfigValue -configKey 'cacheLocation'

Inputs

None

Outputs

None

Parameters

-ConfigKey <String>

Property Value
Aliases
Required? true
Position? 1
Default Value
Accept Pipeline Input? false

-IgnoredArguments [<Object[]>]

Property Value
Aliases
Required? false
Position? 2
Default Value
Accept Pipeline Input? false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters http://go.microsoft.com/fwlink/p/?LinkID=113216 .

Function Reference

:choco-info: NOTE

This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-ChocolateyConfigValue -Full.

View the source for Get-ChocolateyConfigValue