Test-ChocolateySetting
SYNOPSIS
Test Whether a setting is set, enabled or not found
SYNTAX
Set (Default)
Test-ChocolateySetting -Name <String> -Value <String> [<CommonParameters>]
Unset
Test-ChocolateySetting -Name <String> [-Unset] [<CommonParameters>]
DESCRIPTION
Some settings might not be available in your version or SKU. This command allows you to test the values of a named setting.
EXAMPLES
EXAMPLE 1
Test-ChocolateySetting -Name SettingName -value ''
PARAMETERS
-Name
Name of the Setting to verify
Type: System.String
Parameter Sets: (All)
Aliases: Setting
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Value
Test if the Setting value provided matches with the one set on the config file.
Type: System.String
Parameter Sets: Set
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Unset
Test if the Setting is disabled, the default is to test if the feature is enabled.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: Unset
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Boolean
NOTES
https://github.com/chocolatey/choco/wiki/CommandsConfig