< Back

Test-ChocolateyFeature

Mon Jan 13, 2020 1:40 am

NAME 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.





PARAMETERS

-Name <String>

Name of the feature to verify



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Disabled [<SwitchParameter>]

Test if the feature 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/wik ... ndsFeature



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



PS C:\\>Test-ChocolateyFeature -Name FeatureName -Disabled















RELATED LINKS