Get-TraceSource
Gets PowerShell components that are instrumented for tracing.
구문
Default (기본값)
Get-TraceSource
[[-Name] <String[]>]
[<CommonParameters>]
Description
The Get-TraceSource
cmdlet gets the trace sources for PowerShell components that are currently in
use. You can use the data to determine which 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 PowerShell developers, but they are available to all users.
예제
Example 1: Get trace sources by name
Get-TraceSource -Name "*Provider*"
This command gets all of the trace sources that have names that include provider.
Example 2: Get all trace sources
Get-TraceSource
This command gets all of the PowerShell components that can be traced.
매개 변수
-Name
Specifies the trace sources to get. Wildcards are permitted. The parameter name Name is optional.
매개 변수 속성
형식: | String[] |
Default value: | None |
와일드카드 지원: | True |
DontShow: | False |
매개 변수 집합
(All)
Position: | 0 |
필수: | False |
파이프라인의 값: | True |
속성 이름별 파이프라인의 값: | True |
나머지 인수의 값: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
입력
String
You can pipe a string that contains the name of a trace source to this cmdlet.
출력
PSTraceSource
This cmdlet returns objects representing the trace sources.