< Back

Disable-OutputSubscriber

Sat Jan 18, 2020 9:43 pm

NAME Disable-OutputSubscriber



SYNOPSIS

Detaches a ScriptBlockOutputSubscriber object from the session's host interceptor.





SYNTAX

Disable-OutputSubscriber [-InputObject] <ScriptBlockOutputSubscriber> [<CommonParameters>]





DESCRIPTION

If the specified ScriptBlockOutputSubscriber object is currently attached to the session's host interceptor, it

will be removed.





PARAMETERS

-InputObject <ScriptBlockOutputSubscriber>

The ScriptBlockOutputSubscriber object to be detached.



Required? true

Position? 0

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

PowerShellLogging.ScriptBlockOutputSubscriber







OUTPUTS

None







NOTES











RELATED LINKS

Enable-OutputSubscriber

Get-OutputSubscriber

about_PowerShellLogging