Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Get-TraceSource

Updated: October 17, 2013

Applies To: Windows PowerShell 4.0

Get-TraceSource

Gets the Windows PowerShell components that are instrumented for tracing.

Syntax

Parameter Set: Default
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 they are available to all users.

Parameters

-Name<String[]>

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


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

true

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    You can pipe a string that contains the name of a trace source to Get-TraceSource.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Management.Automation.PSTraceSource

    Get-TraceSource returns objects that represent the trace sources.


Examples

-------------------------- EXAMPLE 1 --------------------------

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


PS C:\> get-traceSource  *provider*

-------------------------- EXAMPLE 2 --------------------------

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


PS C:\> get-tracesource

Related topics



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.