New-AutodiscoverVirtualDirectory (RTM)

 

適用版本: Exchange Server 2007

上次修改主題的時間: 2007-06-05

使用 New-AutodiscoverVirtualDirectory 指令程式,可以在執行 Microsoft Exchange Server 2007 並安裝 Client Access server role 的電腦上,建立新的自動探索虛擬目錄。如果組織具有多個電子郵件網域,而且每個網域都需要有自己的自動探索站台及對應的虛擬目錄,請使用此指令程式在新網站下建立新的自動探索虛擬目錄。

語法

New-AutodiscoverVirtualDirectory [-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-AutodiscoverVirtualDirectory 指令程式,可以在 Exchange 2007 Client Access Server 上建立新的自動探索虛擬目錄。如果組織具有多個電子郵件網域,而且每個網域都需要有自己的自動探索站台及對應的虛擬目錄,請使用此指令程式在新網站下建立新的自動探索虛擬目錄。

note附註:
建立新的自動探索虛擬目錄時,建議您啟用自動探索服務的安全通訊端層 (SSL)。

若要執行 New-AutodiscoverVirtualDirectory 指令程式,必須對您使用的帳戶委派下列項目:

  • Exchange Server 系統管理員角色和目標伺服器的本機 Administrators 群組

如需管理 Exchange Server 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

參數

參數 必要 類型 描述

ApplicationRoot

選用

System.String

此參數會設定虛擬目錄的 Metabase 路徑。依預設,此路徑會與建立虛擬目錄的網站相同。

AppPoolId

選用

System.String

此參數設定與虛擬目錄搭配使用之程式的集區。

BasicAuthentication

選用

System.Boolean

此參數指定是否在自動探索虛擬目錄上啟用基本驗證。

DigestAuthentication

選用

System.Boolean

此參數指定是否在自動探索虛擬目錄上啟用摘要驗證。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要指定將此組態變更寫入至 Active Directory 目錄服務之網域控制站的網域全名 (FQDN),請在指令程式中加入 DomainController 參數。

ExternalUrl

選用

System.Uri

此參數指定用來從網路防火牆外部連接至虛擬目錄的 URL。

InternalUrl

選用

System.Uri

此參數指定用來從網路防火牆內部連接至虛擬目錄的 URL。

Path

選用

System.String

此參數設定含有虛擬目錄之系統檔的目錄。

TemplateInstance

選用

System.Management.Automation.PSObject

將現有的物件提供給此參數時,指令程式會使用該物件的組態在本機或目標伺服器上建立該物件完全相同的副本。

WebSiteName

選用

System.String

此參數指定要在其下建立虛擬目錄之網際網路資訊服務 (IIS) 網站的名稱。

WindowsAuthentication

選用

System.Boolean

此參數指定是否在自動探索虛擬目錄上啟用整合式 Windows 驗證。

輸入類型

傳回類型

錯誤

錯誤 描述

 

 

例外狀況

例外狀況 描述

 

 

範例

下列程式碼範例會在 "autodiscover.contoso.com" 網站下建立名為 autodiscover 的新虛擬目錄,並需要使用者利用整合式 Windows 驗證或摘要驗證,透過 SSL 進行連線。

New-AutoDiscoverVirtualDirectory -websitename "autodiscover.contoso.com" -WindowsAuthentication $true -DigestAuthentication $true

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.