標籤:exchange server 混合部署 共存部署 exchange 2016
要進行無操作安裝,需要在命令列中執行setup.exe程式,然後使用setup內建的各種無操作安裝參數。
參數如下。
Setup.exe [/Mode:<setup mode>] [/IAcceptExchangeServerLicenseTerms]
[/Role:<server role to install>] [/InstallWindowsComponents]
[/OrganizationName:<name for the new Exchange organization>]
[/TargetDir:<target directory>] [/SourceDir:<source directory>]
[/UpdatesDir:<directory from which to install updates>]
[/DomainController:<FQDN of domain controller>] [/DisableAMFiltering]
[/AnswerFile:<filename>] [/DoNotStartTransport]
[/EnableErrorReporting] [/CustomerFeedbackEnabled:<True | False>]
[/AddUmLanguagePack:<UM language pack name>]
[/RemoveUmLanguagePack:<UM language pack name>]
[/NewProvisionedServer:<server>] [/RemoveProvisionedServer:<server>]
[/MdbName:<mailbox database name>] [/DbFilePath:<Edb file path>]
[/LogFolderPath:<log folder path>] [/ActiveDirectorySplitPermissions:<True | False>]
[/TenantOrganizationConfig:<path>]
同時官方也提供了無操作安裝的命令範例文件,如下。
下面是使用 Setup.exe 的樣本:
Setup.exe /mode:Install /role:Mailbox /OrganizationName:MyOrg /IAcceptExchangeServerLicenseTerms
此命令在名為 MyOrg 的 Active Directory 中建立了一個 Exchange 2016 組織,並安裝了郵箱伺服器角色和管理工具,還接受了 Exchange 2016 授權條款。
Setup.exe /mode:Install /role:Mailbox /TargetDir:"C:\Exchange Server" /IAcceptExchangeServerLicenseTerms
此命令將郵箱伺服器角色和管理工具安裝在“C:\Exchange Server”目錄。此命令假設已準備好了 Exchange 2016 組織。
Setup.exe /mode:Install /r:MB /IAcceptExchangeServerLicenseTerms
此命令將郵箱伺服器角色和管理工具安裝在預設的安裝位置。
Setup.exe /mode:Install /r:EdgeTransport /IAcceptExchangeServerLicenseTerms
此命令將邊緣傳輸伺服器角色和管理工具安裝在預設的安裝位置。
Setup.exe /mode:Install /r:ET /IAcceptExchangeServerLicenseTerms
此命令將邊緣傳輸伺服器角色和管理工具安裝在預設的安裝位置。
Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms
此命令從伺服器上完全刪除 Exchange 2016,並從 Active Directory 上刪除此伺服器的 Exchange 配置。
Setup.exe /PrepareAD /on:"My Org" /IAcceptExchangeServerLicenseTerms
此命令建立名為 My Org 的 Exchange 組織並為 Active Directory 準備 Exchange 2016。
Setup.exe /role:Mailbox /UpdatesDir:"C:\ExchangeServer\New Patches" /IAcceptExchangeServerLicenseTerms
此命令使用指定目錄中的Hotfix更新 ExchangeServer.msi,然後安裝郵箱伺服器角色和管理工具。如果此目錄中包含語言套件套裝,則還會安裝該語言套件。
Setup.exe /mode:Install /role:Mailbox /DomainController:DC01 /IAcceptExchangeServerLicenseTerms
此命令在安裝郵箱伺服器角色和管理工具的同時,使用網域控制站 DC01 查詢並更改 Active Directory。
Setup.exe /mode:Install /role:Mailbox /AnswerFile:c:\ExchangeConfig.txt /IAcceptExchangeServerLicenseTerms
此命令使用 ExchangeConfig.txt 檔案中的設定安裝郵箱伺服器角色。
Setup.exe /rprs:Exchange03 /IAcceptExchangeServerLicenseTerms
此命令從 Active Directory 刪除對象 Exchange03。
Setup.exe /AddUmLanguagePack:ko-KR /IAcceptExchangeServerLicenseTerms
此命令從 %ExchangeSourceDir%\ServerRoles\UnifiedMessaging 目錄安裝朝鮮語整合通訊語言套件。
這裡我們以安裝共存環境中的第二台exchange server 2016伺服器為例。
650) this.width=650;" title="c2732466eeca43788a000a0ce6f12793" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px;" border="0" alt="c2732466eeca43788a000a0ce6f12793" src="http://s3.51cto.com/wyfs02/M02/7E/8B/wKioL1cEa2ywD7mMAACaxA3SROw608.jpg" height="212" />
650) this.width=650;" title="ce629b384e5f4bb4ab58a2b3d7cf58b3" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px;" border="0" alt="ce629b384e5f4bb4ab58a2b3d7cf58b3" src="http://s3.51cto.com/wyfs02/M00/7E/8F/wKiom1cEasLh7gfyAAD7GMFDJcc861.jpg" height="423" />
安裝完成後,提示我們需要重啟伺服器。
650) this.width=650;" title="eaa91f6904c54c9eb55f6db40994efac" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px;" border="0" alt="eaa91f6904c54c9eb55f6db40994efac" src="http://s3.51cto.com/wyfs02/M01/7E/8F/wKiom1cEasPSY84QAAESf-q0I9U885.jpg" height="426" />
重啟完成後,我們再次查看一下,可以看到當前環境中有兩台exchange 2016的server了。
650) this.width=650;" title="3f4cd60ddfad4d0eb924c9ddb67fad7b" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px;" border="0" alt="3f4cd60ddfad4d0eb924c9ddb67fad7b" src="http://s3.51cto.com/wyfs02/M02/7E/8F/wKiom1cEasShcvfmAADRUpP0pS4798.jpg" height="274" />
安裝完成後,如何確認已經安裝成功?
在安裝期間,Exchange 安裝程式在運行 Windows Server 2012 和 Windows Server 2012 R2 的電腦上“事件檢視器”的“應用程式”日誌中記錄事件。查看“應用程式”日誌,並確保不會出現與 Exchange 安裝程式有關的警告或錯誤訊息。這些記錄檔包含 Exchange 2016 安裝期間系統所執行的每個操作曆史以及任何可能出現的錯誤。預設情況下,日誌的記錄方式為 Verbose。提供有關每個已安裝伺服器角色的資訊。
您可以在 <system drive>\ExchangeSetupLogs\ExchangeSetup.log 找到安裝程式記錄檔。<system drive> 變數代表安裝作業系統磁碟機的根目錄。
安裝程式記錄檔將跟蹤 Exchange 2016 安裝和配置期間所執行的每項任務的進度。它包含以下資訊:開始安裝前執行的先決條件檢查和系統準備情況檢查的狀態、應用程式安裝進度以及對系統所做的配置更改。檢查此記錄檔,以驗證伺服器角色已按預期方式安裝。
請在 Exchange 命令列管理程式中運行 Get-ExchangeServer cmdlet。將顯示運行此 cmdlet 時在指定伺服器上安裝的所有 Exchange 2016 伺服器角色。
本文出自 “曾垂鑫的技術專欄” 部落格,謝絕轉載!
Exchange 2010和Exchange 2016共存部署-6:無操作安裝EX16郵箱伺服器