< Back
Disable-LogFile
Post
NAME Disable-LogFile
SYNOPSIS
Detaches a LogFile object from the session's host interceptor.
SYNTAX
Disable-LogFile [-InputObject] <LogFile> [<CommonParameters>]
DESCRIPTION
If the specified LogFile object is currently attached to the session's host interceptor, it will be removed.
PARAMETERS
-InputObject <LogFile>
The LogFile 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.LogFile
OUTPUTS
None. This command does not write output to the pipeline.
NOTES
RELATED LINKS
Enable-LogFile
Get-LogFile
about_PowerShellLogging
SYNOPSIS
Detaches a LogFile object from the session's host interceptor.
SYNTAX
Disable-LogFile [-InputObject] <LogFile> [<CommonParameters>]
DESCRIPTION
If the specified LogFile object is currently attached to the session's host interceptor, it will be removed.
PARAMETERS
-InputObject <LogFile>
The LogFile 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.LogFile
OUTPUTS
None. This command does not write output to the pipeline.
NOTES
RELATED LINKS
Enable-LogFile
Get-LogFile
about_PowerShellLogging