< Back
Test-ChocolateySetting
Post
NAME Test-ChocolateySetting
SYNOPSIS
Test Whether a setting is set, enabled or not found
SYNTAX
Test-ChocolateySetting -Name <String> -Value <String> [<CommonParameters>]
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.
PARAMETERS
-Name <String>
Name of the Setting to verify
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Value <String>
Test if the Setting value provided matches with the one set on the config file.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Unset [<SwitchParameter>]
Test if the Setting is disabled, the default is to test if the feature is enabled.
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
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.Boolean
NOTES
https://github.com/chocolatey/choco/wiki/CommandsConfig
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-ChocolateySetting -Name SettingName -value ''
RELATED LINKS
SYNOPSIS
Test Whether a setting is set, enabled or not found
SYNTAX
Test-ChocolateySetting -Name <String> -Value <String> [<CommonParameters>]
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.
PARAMETERS
-Name <String>
Name of the Setting to verify
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Value <String>
Test if the Setting value provided matches with the one set on the config file.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Unset [<SwitchParameter>]
Test if the Setting is disabled, the default is to test if the feature is enabled.
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
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.Boolean
NOTES
https://github.com/chocolatey/choco/wiki/CommandsConfig
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-ChocolateySetting -Name SettingName -value ''
RELATED LINKS