Get-AddressRewriteEntry

此 cmdlet 仅在本地 Exchange 中的边缘传输服务器上可用或有效。

使用 Get-AddressRewriteEntry cmdlet 可查看现有地址重写条目,这些地址重写条目可重写通过边缘传输服务器发送给组织或从组织发送的邮件中的发件人和收件人的电子邮件地址。

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

语法

Default (默认值)

Get-AddressRewriteEntry
    [[-Identity] <AddressRewriteEntryIdParameter>]
    [-DomainController <Fqdn>]
    [<CommonParameters>]

说明

在边缘传输服务器上,需要是本地管理员组的成员才能运行此 cmdlet。

示例

示例 1

Get-AddressRewriteEntry

本示例返回了列出所有地址重写条目的摘要。

示例 2

Get-AddressRewriteEntry "Address rewrite entry for contoso.com" | Format-List

此示例通过将结果使用管道传递给 Format-List 命令,返回了单个地址重写条目的详细配置。

参数

-DomainController

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

DomainController 参数指定此 cmdlet 从 Active Directory 读取数据或向其写入数据时使用的域控制器。 可以使用完全限定的域名 (FQDN) 来标识域控制器。 例如,dc01.contoso.com。

边缘传输服务器上不支持 DomainController 参数。 边缘传输服务器使用活动目录轻型目录服务 (AD LDS) 的本地实例来读取和写入数据。

参数属性

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

参数集

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

-Identity

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

Identity 参数指定要检索的地址重写条目。 Identity 参数接受 GUID 或唯一的地址重写名称。 可以省略 Identity 参数标签。

参数属性

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

参数集

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

CommonParameters

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

输入

Input types

若要了解此 cmdlet 接受的输入类型,请参阅 cmdlet 的输入和输出类型。 如果 cmdlet 的"输入类型"字段为空,则表明此 cmdlet 不接受输入数据。

输出

Output types

若要了解此 cmdlet 接受的返回类型(亦称为"输出类型"),请参阅 cmdlet 的输入和输出类型。 如果"输出类型"字段为空,则表明此 cmdlet 不返回任何数据。