< Back

Get-EtwTraceProvider

Tue Jan 29, 2019 10:16 pm

NAME Get-EtwTraceProvider



SYNOPSIS

Gets ETW trace providers.





SYNTAX

Get-EtwTraceProvider [[-Guid] <String[]>] [-AutologgerName <String[]>] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Get-EtwTraceProvider [[-Guid] <String[]>] [-CimSession <CimSession[]>] [-SessionName <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]





DESCRIPTION

The Get-EtwTraceProvider cmdlet gets Event Trace for Windows (ETW) trace providers for an ETW Autologger configuration or ETW Session. Use this

command to view provider property information, such as its GUID, level, and keyword configurations.





PARAMETERS

-AutologgerName [<String[]>]

Specifies an array of names of the Autologger configurations for which this cmdlet gets ETW trace providers. If you specify this parameter, do

not specify the SessionName parameter.



Required? false

Position? named

Default value none

Accept pipeline input? true(ByPropertyName)

Accept wildcard characters? false



-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession

or Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Guid [<String[]>]

Specifies an array of GUIDs, as strings, of the ETW trace providers that this cmdlet gets.



Required? false

Position? 1

Default value none

Accept pipeline input? true(ByPropertyName)

Accept wildcard characters? false



-SessionName [<String[]>]

Specifies an array of names of the ETW sessions for which this cmdlet gets ETW trace providers. If you specify this parameter, do not specify

the AutologgerName parameter.



Required? false

Position? named

Default value none

Accept pipeline input? true(ByPropertyName)

Accept wildcard characters? 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.



Required? false

Position? named

Default value none

Accept pipeline input? false

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









Example 1: View all available trace providers



PS C:\\>Get-NetEventProvider -ShowInstalled | Select-Object -Property *



This command obtains a list of all available ETW trace providers and their GUIDs on the current computer by using the Get-NetEventProvider cmdlet.

For more information, type Get-Help Get-NetEventProvider.





Example 2: Get trace providers for an ETW session



PS C:\\>Get-EtwTraceProvider -SessionName "NtfsLog"

SessionName : NtfsLog

AutologgerName :

Guid : {9C88041D-349D-4647-8BFD-2C0A167BFE58}

Level : 4

MatchAnyKeyword : 0xFFFFFFFFFFFFFFFF

MatchAllKeyword : 0x0

Property : 0



SessionName : NtfsLog

AutologgerName :

Guid : {5EEFEBDB-E90C-423A-8ABF-0241E7C5B87D}

Level : 0

MatchAnyKeyword : 0x0

MatchAllKeyword : 0x0

Property : 0



This command gets all trace providers for the ETW session named NtfsLog.





Example 3: Get trace providers for an Autologger configuration



PS C:\\>Get-EtwTraceProvider -AutologgerName "WdiContextLog"

SessionName :

AutologgerName : WdiContextLog

Guid : 1D75856D-36A7-4ECB-A3F5-B13152222D29

Level : 0

MatchAnyKeyword : 0x0

MatchAllKeyword : 0x0

Property : 0



SessionName :

AutologgerName : WdiContextLog

Guid : {1D75856D-36A7-4ECB-A3F5-B13152222D29}

Level : 0

MatchAnyKeyword : 0x0

MatchAllKeyword : 0x0

Property : 0



This command gets all trace providers for the Autologger configuration named WdiContextLog.







RELATED LINKS

Configuring and Starting an AutoLogger Session

Configuring and Starting an Event Tracing Session

Add-EtwTraceProvider

Remove-EtwTraceProvider

Set-EtwTraceProvider