Share via


Get-EtwTraceSession

Se aplica a: Windows 10, Windows Server Technical Preview

Get-EtwTraceSession

Gets ETW trace sessions.

Sintaxis

Parameter Set: ByName
Get-EtwTraceSession [[-Name] <String[]> ] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>] [ <WorkflowParameters>]

Descripción detallada

The Get-EtwTraceSession cmdlet gets Event Trace for Windows (ETW) trace sessions. Get all sessions or one or more sessions by name.

Parámetros

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-Name<String[]>

Specifies an array of the names of ETW trace sessions to get.

Alias

none

¿Necesario?

false

¿Posición?

1

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

true(ByPropertyName)

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of zero is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Alias

none

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, vea  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

<WorkflowParameters>

Entradas

El tipo de entrada es el tipo de objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de los objetos que el cmdlet emite.

Ejemplos

Example 1: Get a trace session

This command gets the ETW trace session named NetCfgTrace.

PS C:\> Get-EtwTraceSession -Name "NetCfgTrace"

Temas relacionados

Remove-EtwTraceSession

Send-EtwTraceSession

Set-EtwTraceSession