Get-SbecLogSession

Get-SbecLogSession is accessible with the help of BootEventCollector module. To configure BootEventCollector, go through this link.

Synopsis

Gets the running log sessions.

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.

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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of a log session.

Type:String
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
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

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

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Get-SbecLogSession

Get-Command Get-SbecLogSession powershell script command cmdlet

You can also read about

  • Save-SbecLogSession
  • Set-SbecLogSession
  • Start-SbecLogSession
  • Start-SbecNtKernelLogSession
  • Start-SbecSimpleLogSession
  • Stop-SbecLogSession

To know more PowerShell cmdlets(Commands) on BootEventCollector click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *