使用金鑰管理服務進行啟用Activate using Key Management Service

適用對象Applies to

  • Windows 10Windows 10
  • Windows 8.1Windows 8.1
  • Windows8Windows 8
  • Windows 7Windows 7
  • WindowsServer 2012 R2Windows Server 2012 R2
  • Windows Server 2012Windows Server 2012
  • Windows Server 2008 R2Windows Server 2008 R2

尋找零售版啟用相關資訊嗎?Looking for retail activation?

使用金鑰管理服務 (KMS) 主機,有三種可能的 Windows10 或 Windows Server2012R2 批量啟用案例:There are three possible scenarios for volume activation of Windows10 or Windows Server2012R2 by using a Key Management Service (KMS) host:

  • 在執行 Windows10 的電腦上主機 KMSHost KMS on a computer running Windows10
  • 在執行 Windows Server2012R2 的電腦上主機 KMSHost KMS on a computer running Windows Server2012R2
  • 在執行舊版 Windows 的電腦上主控 KMSHost KMS on a computer running an earlier version of Windows

請查看 Windows 10 大量啟用秘訣Check out Windows 10 Volume Activation Tips.

Windows10 中的金鑰管理服務Key Management Service in Windows10

在執行 Windows10 的電腦上安裝 KMS 主機金鑰之後,您就可以針對此 KMS 主機和舊版的用戶端作業系統(例如 Windows 8.1 或 Windows7)來啟用其他執行 Windows10 的電腦。Installing a KMS host key on a computer running Windows10 allows you to activate other computers running Windows10 against this KMS host and earlier versions of the client operating system, such as Windows8.1 or Windows7. 用戶端會使用 DNS 中的資源記錄來尋找 KMS 伺服器,因此可能需要進行某些 DNS 設定。Clients locate the KMS server by using resource records in DNS, so some configuration of DNS may be required. 如果您的組織對用戶端使用大量啟用,而對數目較少的伺服器使用 MAK 型啟用,則適用此案例。This scenario can be beneficial if your organization uses volume activation for clients and MAK-based activation for a smaller number of servers. 若要啟用 KMS 功能,請在 KMS 主機上安裝 KMS 金鑰;然後,主機會透過網際網路或使用 Microsoft activation service 在手機上啟用。To enable KMS functionality, a KMS key is installed on a KMS host; then, the host is activated over the Internet or by phone using Microsoft activation services.

在 Windows 10 中設定 KMSConfigure KMS in Windows 10

若要啟動,請使用 slmgr.vbs 命令。To activate, use the slmgr.vbs command. 開啟提升許可權的命令提示字元,並執行下列其中一個命令:Open an elevated command prompt and run one of the following commands:

  • 若要安裝 KMS 金鑰,請輸入 slmgr.vbs /ipk <KmsKey>To install the KMS key, type slmgr.vbs /ipk <KmsKey>.
  • 若要線上啟用,請輸入 slmgr.vbs /atoTo activate online, type slmgr.vbs /ato.
  • 若要透過電話啟用,請依照下列步驟進行:To activate by telephone, follow these steps:
    1. 執行 slmgr.vbs /dti 並確認安裝 ID。Run slmgr.vbs /dti and confirm the installation ID.
    2. 呼叫 Microsoft 授權啟用中心全球電話號碼 ,並依照語音提示輸入您在電話上步驟1取得的安裝識別碼。Call Microsoft Licensing Activation Centers worldwide telephone numbers and follow the voice prompts to enter the installation ID that you obtained in step 1 on your telephone.
    3. 請按照語音提示進行,然後寫下作業系統啟用的回應48位數確認識別碼。Follow the voice prompts and write down the responded 48-digit confirmation ID for OS activation.
    4. 執行 slmgr.vbs /atp \<confirmation ID\>Run slmgr.vbs /atp \<confirmation ID\>.

如需詳細資訊,請參閱 部署 KMS 啟用中的 Windows7 資訊。For more information, see the information for Windows7 in Deploy KMS Activation.

Windows Server2012R2 中的金鑰管理服務Key Management Service in Windows Server2012R2

在執行 Windows Server 的電腦上安裝 KMS 主機金鑰,可讓您啟動執行 Windows Server2012R2、Windows Server2008R2、Windows Server2008、Windows 10、Windows 8.1、Windows7 及 Windows Vista 的電腦。Installing a KMS host key on a computer running Windows Server allows you to activate computers running Windows Server2012R2, Windows Server2008R2, Windows Server2008, Windows 10, Windows8.1, Windows7, and Windows Vista.

注意

您無法將用戶端 KMS 金鑰安裝到 Windows Server 中的 KMS。You cannot install a client KMS key into the KMS in Windows Server.

此案例通常用在額外使用伺服器不會造成負擔的較大組織中。This scenario is commonly used in larger organizations that do not find the overhead of using a server a burden.

注意

如果您在嘗試啟用 Windows10 Enterprise 時收到錯誤0xC004F015,請參閱 KB 3086418If you receive error 0xC004F015 when trying to activate Windows10 Enterprise, see KB 3086418.

在 Windows Server2012R2 中設定 KMSConfigure KMS in Windows Server2012R2

  1. 使用具有本機系統管理認證的帳戶,登入執行 Windows Server 2012 R2 的電腦。Sign in to a computer running Windows Server 2012 R2 with an account that has local administrative credentials.

  2. 啟動 [伺服器管理員]。Launch Server Manager.

  3. 新增 [大量啟用服務] 角色,如圖 4 所示。Add the Volume Activation Services role, as shown in Figure 4.

    在伺服器管理員中新增大量啟用服務角色

    圖 4Figure 4. 在伺服器管理員中新增大量啟用服務角色Adding the Volume Activation Services role in Server Manager

  4. 在角色安裝完成後,按一下連結以啟動 [大量啟用工具] (圖 5)。When the role installation is complete, click the link to launch the Volume Activation Tools (Figure 5).

    啟動大量啟用工具

    圖 5Figure 5. 啟動大量啟用工具Launching the Volume Activation Tools

  5. 選取 [金鑰管理服務 (KMS)] 選項,並指定要做為 KMS 主機的電腦 (圖 6)。Select the Key Management Service (KMS) option, and specify the computer that will act as the KMS host (Figure 6). 這可以是您安裝角色的同一部電腦,或另一部電腦。This can be the same computer on which you installed the role or another computer. 例如,這可以是執行 Windows 10 的用戶端電腦。For example, it can be a client computer running Windows 10.

    將電腦設定為 KMS 主機

    圖 6Figure 6. 將電腦設定為 KMS 主機Configuring the computer as a KMS host

  6. 在文字方塊中輸入您的 KMS 主機金鑰,然後按一下 [認可] 加以安裝 (圖 7)。Install your KMS host key by typing it in the text box, and then click Commit (Figure 7).

    安裝您的 KMS 主機金鑰

    圖 7Figure 7. 安裝您的 KMS 主機金鑰Installing your KMS host key

  7. 如果系統要求您確認是否要取代現有的金鑰,請按一下 [是]If asked to confirm replacement of an existing key, click Yes.

  8. 安裝產品金鑰後,您必須加以啟用。After the product key is installed, you must activate it. 按一下 [下一步] (圖 8)。Click Next (Figure 8).

    啟用軟體

    圖 8Figure 8. 啟用軟體Activating the software

    KMS 金鑰可以透過網路或電話來啟用。The KMS key can be activated online or by phone. 請參閱圖 9。See Figure 9.

    選擇線上啟用

    圖 9Figure 9. 選擇線上啟用Choosing to activate online

KMS 主機設定完成後,現在將會開始接聽啟用要求。Now that the KMS host is configured, it will begin to listen for activation requests. 不過,在到達啟用閾值之前,用戶端將不會順利啟用。However, it will not activate clients successfully until the activation threshold is met.

確認金鑰管理服務的設定Verifying the configuration of Key Management Service

您可以從 KMS 主機伺服器或用戶端電腦來確認 KMS 大量啟用。You can verify KMS volume activation from the KMS host server or from the client computer. 在處理啟動要求之前,KMS 大量啟用需要最小閾值 of25 電腦。KMS volume activation requires a minimum threshold of25 computers before activation requests will be processed. 此處所述的驗證程序會在每次用戶端電腦聯繫 KMS 主機時增加啟用計數,但除非達到啟用閾值,否則驗證程序將會顯示錯誤訊息,而不是確認訊息。The verification process described here will increment the activation count each time a client computer contacts the KMS host, but unless the activation threshold is reached, the verification will take the form of an error message rather than a confirmation message.

注意

如果您在設定 KMS 啟用之前設定了 Active Directory 型啟用,您必須使用不會先嘗試使用 Active Directory 型啟用進行自行啟用的用戶端電腦。If you configured Active Directory-based activation before configuring KMS activation, you must use a client computer that will not first try to activate itself by using Active Directory-based activation. 您可以使用未加入網域的工作組電腦或執行 Windows7 或 Windows Server2008R2 的電腦。You could use a workgroup computer that is not joined to a domain or a computer running Windows7 or Windows Server2008R2.

若要確認 KMS 大量啟用可運作,請完成下列步驟:To verify that KMS volume activation works, complete the following steps:

  1. 在 KMS 主機上開啟事件記錄檔,並確認 DNS 發佈成功。On the KMS host, open the event log and confirm that DNS publishing is successful.

  2. 在用戶端電腦上開啟 [命令提示字元] 視窗,輸入 Slmgr.vbs /ato 後按 Enter 鍵。On a client computer, open a Command Prompt window, type Slmgr.vbs /ato, and then press ENTER.

    /ato 命令會使作業系統嘗試使用已安裝在作業系統中的金鑰進行啟用。The /ato command causes the operating system to attempt activation by using whichever key has been installed in the operating system. 回應應該會顯示授權狀態和詳細的 Windows 版本資訊。The response should show the license state and detailed Windows version information.

  3. 在用戶端電腦或 KMS 主機上,開啟提升許可權的命令提示字元視窗,輸入 slmgr.vbs/dlv,然後按 enter。On a client computer or the KMS host, open an elevated Command Prompt window, type Slmgr.vbs /dlv, and then press ENTER.

    /dlv 命令會顯示詳細的授權資訊。The /dlv command displays the detailed licensing information. 回應應該會傳回錯誤,指出 KMS 啟用計數太低。The response should return an error that states that the KMS activation count is too low. 這會確認 KMS 運作正常,即使用戶端未啟用亦然。This confirms that KMS is functioning correctly, even though the client has not been activated.

如需關於 slmgr.vbs 用法和語法的詳細資訊,請參閱 Slmgr.vbs 選項For more information about the use and syntax of slmgr.vbs, see Slmgr.vbs Options.

舊版 Windows 中的金鑰管理服務Key Management Service in earlier versions of Windows

如果您已在貴組織中建立舊版 Windows 的 KMS 基礎結構,您可能會想要繼續使用該基礎結構來啟動執行 Windows10 或 Windows Server2012R2 的電腦。If you have already established a KMS infrastructure in your organization for an earlier version of Windows, you may want to continue using that infrastructure to activate computers running Windows10 or Windows Server2012R2. 您現有的 KMS 主機必須執行 Windows 7 或更新版本。Your existing KMS host must be running Windows 7 or later. 若要升級您的 KMS 主機,請完成下列步驟:To upgrade your KMS host, complete the following steps:

  1. 下載並安裝您目前的 KMS 主機作業系統適用的正確更新。Download and install the correct update for your current KMS host operating system. 依照指示重新啟動電腦。Restart the computer as directed.
  2. 向大量授權服務中心要求新的 KMS 主機金鑰。Request a new KMS host key from the Volume Licensing Service Center.
  3. 在您的 KMS 主機上安裝新的 KMS 主機金鑰。Install the new KMS host key on your KMS host.
  4. 執行 slmgr.vbs 腳本來啟用新的 KMS 主機金鑰。Activate the new KMS host key by running the slmgr.vbs script.

如需詳細指示,請參閱可讓 Windows 8.1 和 Windows 8 KMS 主機啟用 Windows 更新版本的更新可讓 Windows 7 和 Windows Server 2008 R2 KMS 主機啟用 Windows 10 的更新For detailed instructions, see Update that enables Windows 8.1 and Windows 8 KMS hosts to activate a later version of Windows and Update that enables Windows 7 and Windows Server 2008 R2 KMS hosts to activate Windows 10.

另請參閱See also