Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-SbecLogSession

Brian Lich|Last Updated: 3/26/2017

SYNOPSIS

Gets the running log sessions.

SYNTAX

Get-SbecLogSession [[-Name] <String>] [-KdOnly] [[-SimulateError] <Int32>] [<CommonParameters>]

DESCRIPTION

The Get-SbecLogSession cmdlet gets the ETW log sessions that are currently running. This operation does not get log sessions defined in the registry for AutoLogger.

This cmdlet returns the SbecEtwTrace.TraceSessionInfo objects, whose properties contain most of the interesting information. More details are available in the Trace property.

EXAMPLES

PARAMETERS

-KdOnly

Indicates that this operation gets only log sessions that are configured to forward events through the kernel transport to the collector.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Specifies the name of a log session.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SimulateError

Simulate a Windows error, and cause the function to throw. You can specify this parameter to test error handling.

Type: Int32
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None.

OUTPUTS

SbecEtwTrace.TraceSessionInfo

The SbecEtwTrace.TraceSessionInfo class is defined in $PsHome\Modules\BootEventCollector\SbecTraceHelpers.psm1.

NOTES

Save-SbecLogSession

Set-SbecLogSession

Start-SbecLogSession

Start-SbecNtKernelLogSession

Start-SbecSimpleLogSession

Stop-SbecLogSession

© 2017 Microsoft