Skip to content

Test-ChocolateyFeature

SYNOPSIS

Test Whether a feature is disabled, enabled or not found

SYNTAX

Test-ChocolateyFeature [-Name] <String> [-Disabled] [<CommonParameters>]

DESCRIPTION

Some feature might not be available in your version or SKU. This command allows you to test the state of that feature.

EXAMPLES

EXAMPLE 1

Test-ChocolateyFeature -Name FeatureName -Disabled

PARAMETERS

-Name

Name of the feature to verify

Type: System.String
Parameter Sets: (All)
Aliases: Feature

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Disabled

Test if the feature is disabled, the default is to test if the feature is enabled.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
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/CommandsFeature

Back to top