Enable-OutlookAnywhere

 

适用于: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上一次修改主题: 2008-04-04

Enable-OutlookAnywhere cmdlet 可在运行安装了客户端访问服务器角色的 Microsoft Exchange Server 2007 计算机上启用 Outlook Anywhere。运行此 cmdlet 可使服务器通过使用 Outlook Anywhere(也称为 HTTP 上的 RPC)接受来自 Internet 的 Microsoft Office Outlook 2007 和 Outlook 2003 客户端计算机的请求。

语法

Enable-OutlookAnywhere -DefaultAuthenticationMethod <Basic | Digest | Ntlm | Fba | WindowsIntegrated | Misconfigured> -ExternalHostname <Hostname> -SSLOffloading <$true | $false> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-Server <ServerIdParameter>] [-TemplateInstance <PSObject>] [-WhatIf [<SwitchParameter>]]

Enable-OutlookAnywhere -ClientAuthenticationMethod <Basic | Digest | Ntlm | Fba | WindowsIntegrated | Misconfigured> -ExternalHostname <Hostname> -SSLOffloading <$true | $false> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-IISAuthenticationMethods <MultiValuedProperty>] [-Server <ServerIdParameter>] [-TemplateInstance <PSObject>] [-WhatIf [<SwitchParameter>]]

详细说明

Enable-OutlookAnywhere cmdlet 将启用 Exchange 2007 客户端访问服务器的 Outlook Anywhere。这可使服务器使用 Outlook Anywhere 接受来自 Internet 的 Outlook 2007 和 Outlook 2003 客户端请求。

important要点:
仅当已安装 RPC over HTTP 代理 Windows 网络组件时,才可以成功运行此 cmdlet。
note注意:
运行此 cmdlet 时,最多需要一个小时使设置生效,这取决于 Active Directory 的复制时间。

若要运行 Enable-OutlookAnywhere cmdlet,必须为您使用的帐户委派 Exchange Server 管理员角色以及目标服务器的本地 Administrators 组成员身份。

有关管理 Exchange 2007 所需的权限、角色委派以及权利的详细信息,请参阅权限注意事项

参数

参数 必需 类型 说明

ClientAuthenticationMethod

必需

Microsoft.Exchange.Data.Directory.SystemConfiguration.AuthenticationMethod

此参数指定自动发现服务为 Outlook Anywhere 客户端提供的用于向客户端访问服务器验证身份的身份验证方法。可以将身份验证方法设置为“基本”或“NTLM”。

note注意:
如果不使用 DefaultAuthenticationMethod 参数,则必须指定此参数。如果在未指定 IISAuthenticationMethods 参数的情况下使用此参数,身份验证方法将设置为“NTLM”和“基本”。

DefaultAuthenticationMethod

必需

Microsoft.Exchange.Data.Directory.SystemConfiguration.AuthenticationMethod

使用此参数可将 ClientAuthenticationMethod 参数和 IISAuthenticationMethods 参数设置为相同的值。使用 DefaultAuthenticationMethod 参数设置身份验证值时,将强制对 Internet 信息服务 (IIS) 中的 /rpc 虚拟目录使用指定的身份验证方法。可以将该身份验证方法设置为“基本”或“NTLM”。

note注意:
如果指定了 DefaultAuthenticationMethod 参数,则 ClientAuthenticationMethodIISAuthenticationMethods 参数都不能使用。

ExternalHostname

必需

Microsoft.Exchange.Data.Hostname

此参数指定在启用了 Outlook Anywhere 的用户的 Outlook 配置文件中使用的外部主机名称。

SSLOffloading

必需

System.Boolean

此参数指定客户端访问服务器是否需要安全套接字层 (SSL)。如果 SSL 硬件解决方案在客户端访问服务器之前运行,则只能将此值设置为 $true

Confirm

可选

System.Management.Automation.SwitchParameter

Confirm 参数将导致命令暂停处理,并且需要您在继续处理之前确认该命令将执行的操作。您不必使用 Confirm 参数指定值。

DomainController

可选

Microsoft.Exchange.Data.Fqdn

若要指定域控制器的完全限定的域名 (FQDN),请在此 cmdlet 中包含 DomainController 参数。

IISAuthenticationMethods

可选

Microsoft.Exchange.Data.MultiValuedProperty

此参数指定将对 IIS 中的 /rpc 虚拟目录启用的身份验证方法。使用此参数时,将禁用其他所有身份验证方法。通过使用逗号分隔一系列身份验证方法,可以为此参数指定多个值。例如:NTLM, Basic。

Server

可选

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

此参数指定要为 Outlook Anywhere 启用的客户端访问服务器的名称。

TemplateInstance

可选

System.Management.Automation.PSObject

将现有对象提供给此参数时,此 cmdlet 将使用对象的配置在本地服务器或目标服务器上创建对象的相同副本。

WhatIf

可选

System.Management.Automation.SwitchParameter

WhatIf 参数指示命令模拟针对对象执行的操作。通过使用 WhatIf 参数,您可以查看要发生的更改,而不必应用任何这些更改。您不必使用 WhatIf 参数指定值。

输入类型

返回类型

错误

错误 说明

 

 

异常

异常 说明

 

 

示例

此代码示例为 Outlook Anywhere 启用名为 Server01 的服务器。外部主机名设置为 mail.contoso.com。基本身份验证用作客户端和 /rpc 虚拟目录的唯一身份验证方法。

Enable-OutlookAnywhere -Server:Server01 -ExternalHostname:mail.contoso.com -DefaultAuthenticationMethod:Basic