< Back
Unregister-PSFCallback
Post
NAME Unregister-PSFCallback
SYNOPSIS
Removes a callback from the list of registered callbacks.
SYNTAX
Unregister-PSFCallback -Name <String[]> [<CommonParameters>]
Unregister-PSFCallback -Callback <Callback[]> [<CommonParameters>]
DESCRIPTION
Removes a callback from the list of registered callbacks.
PARAMETERS
-Name <String[]>
The name of the callback to remove.
Does NOT support wildcards.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Callback <Callback[]>
A full callback object to remove.
Use Get-PSFCallback to get the list of relevant callback objects.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
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:\\>Unregister-PSFCallback -Name 'MyModule.Configuration'
Unregisters the 'MyModule.Configuration' callback script.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PSFCallback | Unregister-PSFCallback
Removes all callback scripts applicable to the current runspace.
RELATED LINKS
SYNOPSIS
Removes a callback from the list of registered callbacks.
SYNTAX
Unregister-PSFCallback -Name <String[]> [<CommonParameters>]
Unregister-PSFCallback -Callback <Callback[]> [<CommonParameters>]
DESCRIPTION
Removes a callback from the list of registered callbacks.
PARAMETERS
-Name <String[]>
The name of the callback to remove.
Does NOT support wildcards.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Callback <Callback[]>
A full callback object to remove.
Use Get-PSFCallback to get the list of relevant callback objects.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
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:\\>Unregister-PSFCallback -Name 'MyModule.Configuration'
Unregisters the 'MyModule.Configuration' callback script.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PSFCallback | Unregister-PSFCallback
Removes all callback scripts applicable to the current runspace.
RELATED LINKS