< Back

Remove-PSFMessageLevelModifier

Sun Jan 19, 2020 6:43 pm

NAME Remove-PSFMessageLevelModifier



SYNOPSIS

Removes a message level modifier.





SYNTAX

Remove-PSFMessageLevelModifier [[-Name] <String[]>] [[-Modifier] <MessageLevelModifier[]>] [-EnableException]

[<CommonParameters>]





DESCRIPTION

Removes a message level modifier.



Message Level Modifiers can be created by using New-PSFMessageLevelModifier.

They are used to emphasize or deemphasize messages, in order to help with debugging.





PARAMETERS

-Name <String[]>

Name of the message level modifier to remove.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Modifier <MessageLevelModifier[]>

The actual modifier to remove, as returned by Get-PSFMessageLevelModifier.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-EnableException [<SwitchParameter>]

This parameters disables user-friendly warnings and enables the throwing of exceptions.

This is less user friendly, but allows catching exceptions in calling scripts.



Required? false

Position? named

Default value False

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:\\>Get-PSFMessageLevelModifier | Remove-PSFMessageLevelModifier



Removes all message level modifiers, restoring everything to their default levels.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Remove-PSFMessageLevelModifier -Name "mymodule.foo"



Removes the message level modifier named "mymodule.foo"











RELATED LINKS