設定 KMS 主機電腦以啟用 Office 的大量授權版本Configure a KMS host computer to activate volume licensed versions of Office

**適用對象:****Office 2019 和 Office 2016 的大量授權版本,包括 Project 和 VisioApplies to: Volume licensed versions of Office 2019 and Office 2016, including Project and Visio

若要啟用 Office 的大量授權版本,包括 Project 和 Visio,您必須擁有 KMS 主機電腦。To activate volume licensed versions of Office, including Project and Visio, you must have a KMS host computer. 透過安裝大量啟用服務角色,然後執行 [大量啟用工具] 精靈,您可將 Windows Server 電腦設定為 KMS 主機電腦。You can configure a Windows Server computer to be a KMS host computer by installing the Volume Activation Services role and then running the Volume Activation Tools wizard.

若要讓 KMS 主機電腦啟用 Office,您必須安裝 Office 大量授權套件並在 KMS 主機電腦上輸入您的 KMS 金鑰。To enable the KMS host computer to activate Office, you must install the Office Volume License Pack and enter your KMS key on the KMS host computer. 然後,您必須透過網際網路或電話啟動 KMS 金鑰。Then, you need to activate the KMS key over the internet or by telephone.

如果您已設定 KMS 主機電腦啟用 Windows,可以設定同一部 KMS 主機電腦啟用 office。If you have a KMS host computer configured to activate Windows, you can configure that same KMS host computer to active Office. 您也可以設定 KMS 主機電腦啟用多個版本的 Office,例如 Office 2019 和 Office 2016。You can also configure a KMS host computer to activate multiple versions of Office, such as Office 2019 and Office 2016. 在這些情況下,KMS 主機電腦必須針對您要啟用的每一個 Office 版本,執行支援 KMS 的作業系統。In these cases, the KMS host computer must be running an operating system that supports KMS for each of the versions of Office that you want to activate. 您必須在 KMS 主機電腦上針對每個版本的 Office 安裝 Office 大量授權套件,並為每個版本的 Office 啟用 KMS 主機金鑰。You'll also need to install the Office Volume License Pack for each version of Office on the KMS host computer and activate a KMS host key for each version of Office.

Office 支援下列作業系統上執行的 KMS 主機電腦,端視 KMS 啟用的 Office 版本而定:Office supports KMS host computers running on the following operating systems, depending on which version of Office is being activated by KMS:

  • Office 2019: 至少 Windows Server 2012 或至少 Windows 8.1 (大量版本)Office 2019: At least Windows Server 2012 or at least Windows 8.1 (volume editions)
  • Office 2016: 至少 Windows Server 2008 R2 或至少 Windows 7 Service Pack 1 (大量版本)Office 2016: At least Windows Server 2008 R2 or at least Windows 7 Service Pack 1 (volume editions)

您可以從 Microsoft 下載中心下載適當的 Office 大量授權套件:Office 2019Office 2016You can download the appropriate Office Volume License Pack from the Microsoft Download Center: Office 2019, Office 2016. 若要取得 KMS 金鑰,請登入大量授權服務中心 (VLSC) 並下載您要 KMS 啟用的每個產品與 Office 版本的 KMS 金鑰。To get the KMS key, sign in to the Volume Licensing Service Center (VLSC) and download the KMS key for each product and version of Office that you want KMS to activate.

注意

如果要在 Windows 7 大量授權版本或 Windows Server 2008 R2 上設定 KMS,則必須先安裝修補程式,如 Microsoft 知識庫文件 2757817 中所述。If you are setting up KMS on Windows 7 volume license edition or Windows Server 2008 R2, you must first install a patch as described in Microsoft Knowledge Base article 2757817. 此修補程式可讓 KMS 主機電腦啟用 Windows 8 上執行的 Office 用戶端。This patch allows the KMS host computer to activate Office clients that run on Windows 8.

設定 KMS 主機電腦Configure the KMS host computer

若要設定 KMS 主機電腦以啟用 Office,您必須是 KMS 主機電腦上的 Administrators 群組成員。To configure the KMS host computer to activate Office, you must be a member of the Administrators group on the KMS host computer.

如果您的 KMS 主機電腦有網際網路連線,請執行下列動作:If your KMS host computer has internet access, do the following:

  1. 登入大量授權服務中心 (VLSC) 並下載您要 KMS 啟用的每個產品與 Office 版本的 KMS 金鑰。Sign in to the Volume Licensing Service Center (VLSC) and download the KMS key for each product and version of Office that you want KMS to activate.
  2. 在 KMS 主機電腦上,從 Microsoft 下載中心下載適當的 Office 大量授權套件:Office 2019Office 2016On the KMS host computer, download the appropriate Office Volume License Pack from the Microsoft Download Center: Office 2019, Office 2016.
  3. 執行 Office 大量授權套件可執行檔。Run the Office Volume License Pack executable file. 這會 KMS 主機電腦上安裝 Office 大量授權套件,然後開啟 [大量啟用工具] 精靈。This will install the Office Volume License Pack on the KMS host computer and then opens the Volume Activation Tools wizard.
  4. 請遵照 [大量啟用工具] 精靈中的步驟。Follow the steps in the Volume Activation Tools wizard. 出現提示時,請輸入您的 KMS 金鑰。Enter your KMS key when prompted.
  5. 如果您有防火牆,請確認開啟連接埠 1688 以允許 KMS 主機服務通過防火牆。If you have a firewall, make sure port 1688 is open to allow the KMS host service through the firewall.
    • 移至 [控制台] > [系統及安全性] > [防火牆]Go to Control Panel > System and Security > Windows Firewall.
    • 按一下 [允許程式或功能通過 Windows 防火牆] 連結。Click the Allow an app or feature through Windows Firewall link.
    • 按一下 [變更設定] 按鈕。Click the Change Settings button.
    • 選取 [金鑰管理服務] 的核取方塊,然後選擇 [確定]Select the check box for Key Management Service and then choose OK.

如果 KMS 主機電腦沒有網際網路存取,您可以透過電話啟用它。If your KMS host computer doesn't have internet access, you can activate it by telephone.

  1. 在已提升權限的命令提示字元下,移至 Windows\system32 資料夾,接著執行下列命令:From an elevated command prompt, go to the Windows\system32 folder, and then run the following command:
   cscript slmgr.vbs /dti ACTIVATIONID

ACTIVATIONID 取代為您的 Office 版本的啟用識別碼。Replace ACTIVATIONID with the Activation ID for your version of Office. Office 2019 的啟用識別碼是 70512334-47B4-44DB-A233-BE5EA33B914C,而 Office 2016 的 2016 啟用識別碼則是 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Activation ID for Office 2019 is 70512334-47B4-44DB-A233-BE5EA33B914C, and the 2016 Activation ID for Office 2016 is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.

此命令的結果是 36 位數的安裝識別碼。The result of this command is a 36-digit installation ID. 將安裝識別碼貼到 [記事本],然後將它分成六個群組,每個群組六個數字。Paste the installation ID number into Notepad, and then break it up into six groups of six numbers.

  1. 在命令列中,執行下列命令:At the command line, run the following command:
  slui.exe 4

這會啟動 Windows 電話啟用精靈,並顯示電話號碼。This launches the Windows phone activation wizard and it will display a telephone number.

在您取得電話號碼之後,請取消精靈。After you have obtained the telephone number, cancel the wizard. 您可以忽略精靈所顯示的啟用識別碼。You can ignore the activation ID displayed by the wizard. 該識別碼專供 Windows 使用。It is for Windows.

  1. 撥打電話號碼。Call the telephone number. 在每次出現提示時,輸入一組六個數字。At each prompt, enter a group of six numbers. 這是您在步驟 1 中取得的安裝識別碼。This is the installation ID that you obtained in step 1.

  2. 當您聽到回應時,請寫下數字。When you hear the response, write down the numbers. 這是您的確認識別碼。This is your confirmation ID.

  3. 在命令列中,執行下列命令:At the command line, run the following command:

cscript slmgr.vbs /atp CONFIRMATIONID ACTIVATIONID

CONFIRMATIONID 取代為您透過電話收到的 48 位數確認識別碼。Replace CONFIRMATIONID with the 48 digit confirmation ID that you received over the telephone.

ACTIVATIONID 取代為您的 Office 版本的啟用識別碼。Replace ACTIVATIONID with the Activation ID for your version of Office. Office 2019 的啟用識別碼是 70512334-47B4-44DB-A233-BE5EA33B914C,而 Office 2016 的 2016 啟用識別碼則是 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Activation ID for Office 2019 is 70512334-47B4-44DB-A233-BE5EA33B914C, and the 2016 Activation ID for Office 2016 is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.

  1. 您應該會看到已成功儲存確認識別碼的訊息。You should see a message that the confirmation ID was successfully deposited.

透過 KMS 主機電腦確認啟用Verify activations by the KMS host computer

設定 KMS 主機電腦之後,KMS 用戶端會傳送要求啟用並累加目前的啟用次數。After you set up the KMS host computer, KMS clients send requests for activation and increment the current count of activations. KMS 用戶端啟用之前,目前次數必須是 5 或更多。The current count must be 5 or more before KMS clients are activated. 目前次數上限是啟用閥值的兩倍,或 10。The maximum current count is double the activation threshold, or 10. 您也可以在 [應用程式及服務記錄檔] 中查看 KMS 記錄,以取得事件識別碼 12290,亦即 KMS 相關活動的識別碼。You can also check the KMS log in the Applications and Services Logs folder for event ID 12290, the ID for KMS-related activity. KMS 會記錄來自 KMS 用戶端的記錄啟用要求。The KMS log records activation requests from KMS clients. 每個事件都會顯示電腦的名稱及每個啟用要求的時間戳記。Each event displays the name of the computer and the time stamp of each activation request.

驗證是否已成功安裝及啟用 KMS 主機金鑰Verify the KMS key is successfully installed and activated

從 KMS 主機電腦上提高權限的命令提示字元,執行下列命令︰From an elevated command prompt on the KMS host computer, run the following command:

   cscript slmgr.vbs /dlv all

若只要檢視 Office 2019 的資訊,請在 /dlv 參數後指定啟用識別碼。To view information only for Office 2019, specify the Activation ID after the /dlv parameter. 例如:For example:

    cscript slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C

以下是輸出的一個範例。The following is an example of the output. 寫了「License Status: Licensed」的那一行指出 KMS 主機電腦已成功啟用。The line that says: "License Status: Licensed" indicates that your KMS host computer is successfully activated.

Name: Office 16, OfficeKMSHostVL_KMS_Host edition
Description: Office 16, VOLUME_KMS channel
Activation ID: 98EBFE73-2084-4C97-932C-C0CD1643BEA7
Application ID: 0ff1ce16-a989-479d-af46-f275c6370663
Extended PID: 05426-00206-234-001162-03-1033-9200.0000-0992013
Installation ID: 020650770493837252929082195773527024195725809211989214
Use License URL: https://activation.sls.microsoft.com/SLActivateProduct/SLActiva
teProduct.asmx?configextension=o16
Validation URL: https://go.microsoft.com/fwlink/?LinkID=187557
Partial Product Key: KDQ2G
License Status: Licensed
Remaining Windows rearm count: 1000
Trusted time: 10/26/2016 9:58:33 AM
Key Management Service is enabled on this machine
   Current count: 0
   Listening on Port: 1688
   DNS publishing enabled
   KMS priority: Normal
Key Management Service cumulative requests received from clients
   Total requests received: 0
   Failed requests received: 0
   Requests with License Status Unlicensed: 0
   Requests with License Status Licensed: 0
   Requests with License Status Initial grace period: 0
   Requests with License Status License expired or Hardware out of tolerance: 0
   Requests with License Status Non-genuine grace period: 0
   Requests with License Status Notification: 0