< Back
Set-PSFFeature
Post
NAME Set-PSFFeature
SYNOPSIS
Toggles a feature on or off.
SYNTAX
Set-PSFFeature [-Name] <String> [-Value] <Boolean> [[-ModuleName] <String>] [<CommonParameters>]
DESCRIPTION
Toggles a feature on or off.
This controls the flags for optional features a module might offer.
Features can be controlled globally or specific to a module that tries to consume it.
Module specific settings can override global settings, if a feature supports both global and module flags.
PARAMETERS
-Name <String>
The name of the feature to set.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Value <Boolean>
The value to set it to.
Required? true
Position? 2
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ModuleName <String>
The module it should apply to.
Specifying this parameter sets the flag only for the module specified.
Required? false
Position? 3
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PSFFeature -Name 'PSFramework.InheritEnableException' -Value $true -ModuleName SPReplicator
This sets the flag for the Enable Exception Inheritance Name to $true, but only applies to the module SPReplicator.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PSFFeature -Name 'MyModule.Feierabend' -Value $true
This enables the global flag for the MyModule.Feierabend feature.
RELATED LINKS
SYNOPSIS
Toggles a feature on or off.
SYNTAX
Set-PSFFeature [-Name] <String> [-Value] <Boolean> [[-ModuleName] <String>] [<CommonParameters>]
DESCRIPTION
Toggles a feature on or off.
This controls the flags for optional features a module might offer.
Features can be controlled globally or specific to a module that tries to consume it.
Module specific settings can override global settings, if a feature supports both global and module flags.
PARAMETERS
-Name <String>
The name of the feature to set.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Value <Boolean>
The value to set it to.
Required? true
Position? 2
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ModuleName <String>
The module it should apply to.
Specifying this parameter sets the flag only for the module specified.
Required? false
Position? 3
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PSFFeature -Name 'PSFramework.InheritEnableException' -Value $true -ModuleName SPReplicator
This sets the flag for the Enable Exception Inheritance Name to $true, but only applies to the module SPReplicator.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PSFFeature -Name 'MyModule.Feierabend' -Value $true
This enables the global flag for the MyModule.Feierabend feature.
RELATED LINKS