徵兆
假設你使用 New-OWAVirtualDirectory 或 New-ECPVirtualdirectory 指令碼,在 2013 或 2016 Microsoft Exchange Server 的 Mailbox 伺服器上重新建立「owa」或「ECP」虛擬目錄Microsoft Exchange Server。 此時,使用者嘗試存取 Outlook Web App、Outlook on the Web 或 Exchange 管理中心 (EAC) ,會收到「Http 404」錯誤代碼。
原因
此問題發生於「owa」與「ECP」虛擬目錄的認證方法設定錯誤。 當你執行 New-OWAVirtualDirectory 或 New-ECPVirtualdirectory 指令檔來建立「owa」或「ECP」虛擬目錄時,該指令碼錯誤啟用了表單認證和 Basic 認證,而非Windows 驗證。
因應措施
如果要解決這個問題,請依照下列步驟執行。
對於「owa」虛擬目錄
-
開啟 Exchange Management Shell (EMS) ,然後執行以下 cmdlet 將「owa」虛擬目錄的認證方式改為 Windows 驗證:
set-Owavirtualdirectory -identity “E15MBX\owa (Exchange Back End) ” -WindowsAuthentication $True -Basicauthentication $false -Formsauthentication $false
-
在用戶端存取伺服器與信箱伺服器上執行以下指令,重新啟動 IIS) (網際網路資訊服務:
iisreset /noforce
對於「ECP」虛擬目錄
-
啟動 Windows PowerShell。
-
輸入以下指令,然後在每行後按 Enter 鍵:
Add-PSSnapin *exchange*Set-EcpVirtualDirectory -identity “E15MBX\ecp (Exchange Back End) ” -WindowsAuthentication $true -FormsAuthentication $false
-
在用戶端存取伺服器與信箱伺服器上執行以下指令,重新啟動 IIS) (網際網路資訊服務:
iisreset /noforce