如下说明是翻译PowerShell中: help Get-TraceSource 产生的帮助信息.
译者: Edengundam(马涛)
Get-TraceSource
大纲
取得用于进行跟踪的Windows PowerShell组件.
语法
Get-TraceSource [[-name] <string[]>] [<CommonParameters>]
详细描述
Get-TraceSource cmdlet取得正在使用的Windows PowerShell组件的跟踪源. 使用此数据您可以确定您可以跟踪的Windows PowerShell组件, 组件将会生成每一步内部执行的详细信息. 开发人员使用这些跟踪数据来监视数据流, 程序执行和错误. 跟踪类的cmdlet是为Windows PowerShell开发人员设计的, 但所有用户都可以进行使用.
参数
-name <string[]>
只取得指定的跟踪源. 允许使用通配符. 参数名("-Name")为可选项.
强制参数?
|
false
|
参数位置?
|
1
|
默认值
|
*
|
允许从管道绑定输入?
|
true (根据值, 根据属性名)
|
允许通配符扩展?
|
true
|
<公共参数>
此命令支持公共参数: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. 更多信息, 输入, "get-help about_commonparameters".
输入类型
System.Management.Automation.PSTraceSource
返回类型
System.Management.Automation.PSTraceSource
注意
更多信息, 输入"Get-Help Get-TraceSource -detailed". 需要技术信息, 输入"Get-Help Get-TraceSource -full".
如果需要为该命令提供多个参数, 请使用逗号进行分隔. 例如, "<parameter-name> <value1>, <value2>".
例1
C:/PS>get-traceSource *provider*
此命令返回名字中所有包含"provider"的跟踪源.
例2
C:/PS>get-tracesource
此命令取得Windows PowerShell中可以跟踪的组件.
相关链接
Set-TraceSource
Trace-Command