< Back

Test-PSFFeature

Sun Jan 19, 2020 6:45 pm

NAME Test-PSFFeature



SYNOPSIS

Tests whether a given feature has been enabled.





SYNTAX

Test-PSFFeature [-Name] <String> [[-ModuleName] <String>] [<CommonParameters>]





DESCRIPTION

Tests whether a given feature has been enabled.

Use this within the feature-owning module to determine, whether a feature should be enabled or not.





PARAMETERS

-Name <String>

The feature to test for.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ModuleName <String>

The name of the module that seeks to use the feature.

Must be specified in order to determine module-specific flags.



Required? false

Position? 2

Default value

Accept pipeline input? false

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





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



PS C:\\>Test-PSFFeature -Name PSFramework.InheritEnableException -ModuleName SPReplicator



Tests whether the module SPReplicator has enabled the Enable Exception Inheritance feature.











RELATED LINKS