伺服器組建 DVD 批次檔範例
適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1
上次修改主題的時間: 2009-04-06
本主題提供的範例批次檔,可作為建立批次檔的起點,製作組建 DVD 以改善伺服器組建處理程序需要該批次檔。您可以修改下列程序,為組織建立必要的批次檔。
下列範例指令碼必須如指令碼備註所述進行修改,才能在您的特定環境中運作。此指令碼可協助您自動化許多在環境中部署 Exchange 伺服器所需的步驟。
範例批次檔
重要事項: |
---|
這些指令碼是用來說明如何實作自動化步驟的範例。您必須加以修改,以讓指令碼適合您的環境。您必須在實驗室環境中進行各項測試,之後才能嘗試在生產環境中加以運用。 |
重要事項: |
---|
在批次檔要求安裝檔案之處,您需要確定檔案已下載且放在適當的安裝目錄中。如需相關資訊,請參閱如何建立組態 DVD 和自動化檔案。 |
開始之前
若要執行下列程序,您使用的帳戶必須是本機 Administrators 群組的成員。
如需管理 Exchange 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量。
E2K7-PreReqs.bat
嘗試準備 Exchange Server 2007 必要批次檔之前,應該完全熟悉 Exchange 2007 系統需求主題。
附註: |
---|
Windows Server 2003 才需要此批次檔。 |
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Exchange 2007 必要項目安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 e2k7-prereqs.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file will install Exchange 2007 pre-requisites. echo. Press a button to continue. pause WindowsServer2003-KB904639-x64-ENU.exe -z -m WindowsServer2003.WindowsXP-KB907265-x64-ENU.exe -z -m WindowsServer2003.WindowsXP-KB918980-x64-ENU.exe -z -m WindowsServer2003.WindowsXP-KB921181-v5-x64-ENU.exe -z -m NDP20-KB926776-x64.exe -z -m WindowsServer2003.WindowsXP-KB926139-x64-ENU.exe -z -m cls echo. PLEASE REBOOT NOW!!! Pause
E2K7-PostSP1.bat
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Exchange 2007 post SP1 Hotfix 安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 e2k7-postsp1.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off REM here is an example of how to do this. REM 1-Exchange2003-KB839913-x86-enu.exe -z -m REM 2-Exchange2003-KB883419-x86-ENU.exe -z -m cls echo. Exchange 2007 Post-RTM Hot-Fixes Installation Completed!!! pause
Edge-PreReqs.bat
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Exchange 2007 Edge Transport server role 必要項目安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 edge-prereqs.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file will install Exchange 2007 pre-requisites. echo. Press a button to continue. pause WindowsServer2003-KB904639-x64-ENU.exe -z -m WindowsServer2003.WindowsXP-KB907265-x64-ENU.exe -z -m WindowsServer2003.WindowsXP-KB918980-x64-ENU.exe -z -m WindowsServer2003.WindowsXP-KB921181-v5-x64-ENU.exe -z -m NDP20-KB926776-x64.exe -z -m WindowsServer2003.WindowsXP-KB926139-x64-ENU.exe -z -m ADAMSP1_x64_English.exe -z -m cls echo. PLEASE REBOOT NOW!!! Pause
UM-PreReqs.bat
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Exchange 2007 Unified Messaging server role 必要項目安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 um-prereqs.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file will install Exchange 2007 pre-requisites. echo. Press a button to continue. pause msxml6_x64.msi pause WMEncoder64.exe pause WindowsMedia10-KB917312-x64-INTL.exe -z -m cls echo. PLEASE REBOOT NOW!!! pause
IE7-install.bat
附註: |
---|
Windows Server 2003 才需要此批次檔。 |
程序
使用記事本建立批次檔,自動化 Exchange 環境之 Exchange 2007 伺服器上的 Internet Explorer 7 安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 ie7-install.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file will install Internet Explorer 7 x64. echo. Press a button to continue. pause IE7-WindowsServer2003-x64-enu.exe -z -m cls echo. PLEASE REBOOT NOW!!! pause
E2K7-post-sp2.bat
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Exchange 2007 post-SP2 Hotfix 安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 post-e2k7sp2.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file should only be run on Windows Server 2003 (Exchange 2007) / IIS servers! echo. Press a button to continue. pause REM here is an example of how to do this. REM WindowsServer2003-KB896428-x86-enu.exe -z -m REM WindowsServer2003-KB890046-x86-enu.exe -z -m cls echo. PLEASE REBOOT NOW!!! Pause
W2K3-post-sp2.bat
附註: |
---|
Windows Server 2003 才需要此批次檔。 |
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Windows Server 2003 post-SP2 Hotfix 安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 w2k3-post-sp2.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file should only be run on Windows Server 2003 without IIS! echo. Press a button to continue. pause REM here is an example of how to do this. REM WindowsServer2003-KB896428-x86-enu.exe -z -m REM WindowsServer2003-KB890046-x86-enu.exe -z -m cls echo. PLEASE REBOOT NOW!!! pause
W2K8-hotfix.bat
附註: |
---|
Windows Server 2008 才需要此批次檔。 |
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Windows Server 2008 Hotfix 安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 w2k8-hotfix.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file should only be run on Windows Server 2008! echo. Press a button to continue. pause REM here is an example of how to do this. REM wusa.exe Windows6.0-KB951116-x64.msu /quiet /norestart REM wusa.exe Windows6.0-KB948572-x64.msu /quiet /norestart cls echo. PLEASE REBOOT NOW!!! pause
W2K8-Clus-hotfix.bat
附註: |
---|
Windows Server 2008 才需要此批次檔。 |
程序
使用記事本建立批次檔,自動化 Exchange 環境中的 Windows Server 2008 Hotfix 安裝
開啟記事本或其他文字編輯器。
將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 w2k8-clus-hotfix.bat。
#"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #"!!!!!!! THIS IS NOT A MICROSOFT SUPPORTED SCRIPT. !!!!!!!!" #"!!!!!!! TEST IN A LAB FOR DESIRED OUTCOME !!!!!!!!" #"!!!!!!! !!!!!!!!!!" #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" #" " @echo off echo. This batch file should only be run on Windows Server 2008 Failover Clusters! echo. Press a button to continue. pause REM here is an example of how to do this. REM wusa.exe Windows6.0-KB948720-x64.msu /quiet /norestart REM wusa.exe Windows6.0-KB950181-x64.msu /quiet /norestart cls echo. PLEASE REBOOT NOW!!! pause
相關資訊
如需建立組態 DVD 或伺服器安裝自動化檔案的相關資訊,請參閱如何建立組態 DVD 和自動化檔案。
若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.