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
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