Get-TraceSource

 

SYNOPSIS

Gets the Windows PowerShell components that are instrumented for tracing.

 

SYNTAX

Get-TraceSource [[-name] <string[]>] [<CommonParameters>]

 

DETAILED DESCRIPTION

The Get-TraceSource cmdlet gets the trace sources for Windows PowerShell components that are currently in use. You can use the data to determine which Windows PowerShell components you can trace. When tracing, the component generates detailed messages about each step in its internal processing. Developers use the trace data to monitor data flow, program execution, and errors. The tracing cmdlets were designed for Windows PowerShell developers, but are available to all users.

 

PARAMETERS

 

-name <string[]>

Gets only the specified trace sources. Wildcards are permitted. The parameter name ("-Name") is optional.

 

Required?

false

Position?

1

Default value

*

Accept pipeline input?  

true (ByValue, ByPropertyName)

Accept wildcard characters? 

true

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".

 

INPUT TYPE

System.Management.Automation.PSTraceSource

 

RETURN TYPE

System.Management.Automation.PSTraceSource

 

NOTES

 

For more information, type "Get-Help Get-TraceSource -detailed". For technical information, type "Get-Help Get-TraceSource -full".

 

When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

 

EXAMPLE 1

 

get-traceSource  *provider*

 

This command gets all of the trace sources that have names that include "provider".

 

EXAMPLE 2

 

get-tracesource

 

This command gets all of the Windows PowerShell components that can be traced.

 

RELATED LINKS

Set-TraceSource

Trace-Command