共计 1548 个字符,预计需要花费 4 分钟才能阅读完成。
啟動你的 Exchange PowerShell
修改自動發現:Get-ClientAccessService | Set-ClientAccessService -AutoDiscoverServiceInternalUri "https://mail.ianext.hk/Autodiscover/Autodiscover.xml"
ECP 命令:Set-EcpVirtualDirectory -Identity "Srvex02\ecp (Default Web Site)" -InternalUrl "https://mail.ianext.hk/ecp" -ExternalUrl "https://mail.ianext.hk/ecp"
EWS 命令:Set-WebServicesVirtualDirectory -Identity "Srvex02\EWS (Default Web Site)" -InternalUrl "https://mail.ianext.hk/EWS/Exchange.asmx" -ExternalUrl "https://mail.ianext.hk/EWS/Exchange.asmx"
MAPI 命令:Set-MapiVirtualDirectory -Identity "Srvex02\mapi (Default Web Site)" -InternalUrl "https://mail.ianext.hk/mapi" -ExternalUrl "https://mail.ianext.hk/mapi"
ActiveSync 命令:Set-ActiveSyncVirtualDirectory -Identity "Srvex02\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl "https://mail.ianext.hk/Microsoft-Server-ActiveSync" -ExternalUrl "https://mail.ianext.hk/Microsoft-Server-ActiveSync"
OAB 命令:Set-OabVirtualDirectory -Identity "Srvex02\OAB (Default Web Site)" -InternalUrl "https://mail.ianext.hk/OAB" -ExternalUrl "https://mail.ianext.hk/OAB"
OWA 命令:Set-OWAVirtualDirectory -Identity "Srvex02\owa (Default Web Site)" -InternalUrl "https://mail.ianext.hk/owa" -ExternalUrl "https://mail.ianext.hk/owa"
PowerShell 如下:Set-PowerShellVirtualDirectory -Identity "Srvex02\PowerShell (Default Web Site)" -InternalUrl "http://mail.ianext.hk/powershell" -ExternalUrl "http://mail.ianext.hk/powershell"
PowerShell 參數備註:
服務器名稱:SRVEX02,我的 UAT 環境有 2 臺服務器,一台是 SRVEX01,另外一台是 SRVEX02,所以我需要在 Exchange PowerShell 走兩次這個 Command,而這個命令就的具體參數就似乎你的實際環境而定了。
InternalUrl:內部 URL
ExternalUrl:外部 URL
結果如圖所示
第二個方法就是登陸你的 ECP,手動設定
內部與外部 URL,保存
正文完