Get-ExchangeDiagnosticInfo

此 cmdlet 仅适用于本地 Exchange。

使用 Get-ExchangeDiagnosticInfo cmdlet 可返回有关 Exchange 服务器上运行的进程的信息。

有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法

语法

Default (默认值)

Get-ExchangeDiagnosticInfo
    [-Argument <String>]
    [-Component <String>]
    [-Process <String>]
    [-Server <ServerIdParameter>]
    [-Unlimited]
    [<CommonParameters>]

说明

您必须先获得权限,然后才能运行此 cmdlet。 尽管本文列出了 cmdlet 的所有参数,但如果某些参数未包含在分配给你的权限中,则可能无法访问这些参数。 若要查找在贵组织中运行任何 cmdlet 或参数所需的权限,请参阅 Find the permissions required to run any Exchange cmdlet

示例

示例 1

Get-ExchangeDiagnosticInfo

此示例返回服务器上运行的所有 Exchange 进程的摘要列表。

示例 2

[xml]$edi = Get-ExchangeDiagnosticInfo

$edi.Diagnostics.Processlocator.Process | Format-Table -Auto Name,ID,Guid

此示例以更易于阅读的格式显示命令的 XML 输出。

参数

-Argument

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

Argument 参数指定要与指定的 Component 值一起使用的有效参数。

可用于虚拟组件值的常见参数值是“帮助”和“详细”。

若要查看可用于给定组件值的参数值,请运行命令 Get-ExchangeDiagnosticInfo -Process ProcessName -Component ComponentName -Argument Help

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Component

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

Component 参数返回给定 Process 值的指定 Component 的详细信息。

若要查看可用于给定 Process 值的组件值,请运行 命令 Get-ExchangeDiagnosticInfo -Process ProcessName -Argument Help

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Process

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

Process 参数提供指定 Exchange 进程的详细信息。 有效值是进程的名称 (例如 MSExchangeTransport 或 Microsoft.Exchange.Directory.TopologyService) 。

若要查看可用 Exchange 进程的列表,请运行命令 Get-ExchangeDiagnosticInfo。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Server

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

服务器参数指定要运行此命令的Exchange服务器。 可以使用唯一标识该服务器的任何值。 例如:

  • 名称
  • FQDN
  • 可分辨名称 (DN)
  • Exchange 旧版 DN

Exchange 旧版 DN

参数属性

类型:ServerIdParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Unlimited

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

无限制开关指示命令返回所有可用信息。 不必为此开关指定值。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters