New-WebServicesVirtualDirectory (RTM)
适用于: Exchange Server 2007
上一次修改主题: 2007-06-11
使用 New-WebServicesVirtualDirectory cmdlet,可以在安装了客户端访问服务器角色的运行 Microsoft Exchange Server 2007 的计算机上新建虚拟目录。
语法
New-WebServicesVirtualDirectory [-ApplicationRoot <String>] [-AppPoolId <String>] [-BasicAuthentication <$true | $false>] [-DigestAuthentication <$true | $false>] [-DomainController <Fqdn>] [-ExternalUrl <Uri>] [-InternalUrl <Uri>] [-Path <String>] [-TemplateInstance <PSObject>] [-WebSiteName <String>] [-WindowsAuthentication <$true | $false>]
详细说明
使用 New-WebServicesVirtualDirectory cmdlet,可以在 Exchange 2007 客户端访问服务器上新建虚拟目录。可以使用该 cmdlet 创建多个虚拟目录。
若要运行 New-WebServicesVirtualDirectory cmdlet,必须为您使用的帐户委派以下角色:
- Exchange Server 管理员角色和目标服务器的本地 Administrators 组
有关管理 Exchange Server 2007 所需的权限、角色委派以及权利的详细信息,请参阅权限注意事项。
参数
参数 | 必需 | 类型 | 说明 |
---|---|---|---|
DigestAuthentication |
可选 |
System.Boolean |
该参数(如果使用)指定对虚拟目录使用摘要式身份验证。 |
DomainController |
可选 |
Microsoft.Exchange.Data.Fqdn |
若要指定用于将此配置更改写入 Active Directory 目录服务的域控制器的完全限定的域名 (FQDN),请在 cmdlet 中包含 DomainController 参数。 |
ExternalUrl |
可选 |
System.Uri |
此参数指定用于从外围网络之外连接到 Exchange 服务器的主机名。 |
Path |
可选 |
System.String |
此参数用于在元数据库中设置虚拟目录的路径。 |
TemplateInstance |
可选 |
System.Management.Automation.PSObject |
将现有对象提供给此参数时,该命令将使用该对象的配置在本地服务器或目标服务器上创建对象的副本。 |
WebSiteName |
可选 |
System.String |
此参数指定要在其中新建虚拟目录的网站的名称。在默认网站中新建虚拟目录时,不应使用该参数。 |
WindowsAuthentication |
可选 |
System.Boolean |
使用此参数可以指定是否允许在新的 Exchange Web 服务虚拟目录上使用 Windows 集成身份验证。 |
输入类型
返回类型
错误
错误 | 说明 |
---|---|
|
|
异常
异常 | 说明 |
---|---|
|
|
示例
此代码示例将新建名为“contoso”的虚拟目录,外部 URL 设置为“https://www.contoso.com/webservices.aspx”。
New-WebServicesVirtualDirectory -WebsiteName "www.contoso.com" -ExternalUrl "https://www.contoso.com/webservices.aspx"