MS Office2016のKMS認証サーバの設定 †更新日2018-01-14 (日) 13:48:54
Microsoft Office 2016 の KMSサーバをWindows10Pro (Ver.1709)にインストール インストール †以下からDL
ここの「はい」ボタンを押すとWindows8用の「リモート サーバー管理ツール 」のDownload先に飛ぶので(2017年11月時点)、以下のWindows10用の「リモート サーバー管理ツール 」をDL。
設定 †インストール完了後3つ目図の「いいえ」押し、コマンドプロンプトで「Enter」キーを押すと以下の認証サービスの設定に入る。
クライアント側の設定 †認証開始まで5台クライアントが必要なのですべてに以下の設定をする。 以降はクライアントでの操作 管理者権限でコマンドプロンプト起動 †
C:\Windows\system32>cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /sethst:192.168.31.170 Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- Successfully applied setting. --------------------------------------- ---Exiting-----------------------------
C:\Windows\system32>cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /sethst:win10-kms-sv Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- Successfully applied setting. --------------------------------------- ---Exiting----------------------------- クライアント コンピューター ID (CMID)表示 †C:\Windows\system32>cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dcmid Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- Client Machine ID (CMID): 3e23bcfd-2f39-4b29-a0a9-0939bf0174b0 --------------------------------------- ---Exiting----------------------------- クライアント コンピューター ID (CMID)のリセット †同じCMIDだと認証依頼を同じコンピュータだとサーバが判断し、認証数が増えないようだ。方法は2つあようだ 1)ospprearmはクライアント コンピューター ID (CMID) がリセットされる。これは、KMS ホストが CMID を使って一意のクライアント数を判断するために重要。CMID をチェックするには、コマンド ospp.vbs /dcmid を使う。 C:\Windows\system32>"C:\Program Files\Microsoft Office\Office16\ospprearm" Microsoft Office rearm successful.
または以下の方法 2)ライセンス認証のタイマをリセットし、一意の クライアント コンピューター ID (CMID)を設定するには、対象のコンピュータで Rearm プロセスを実行する必要があります。
C:\Windows\system32>cscript c:\windows\system32\slmgr.vbs /rearm Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. コマンドは正常に完了しました。 変更を有効にするにはコンピューターを再起動してください。
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dcmid Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- Client Machine ID (CMID): Not found. --------------------------------------- ---Exiting----------------------------- 手動認証 †手動認証を行うとCMIDが作成される。これでKMSサーバの「現在の数:」が+1する。 cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /act Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- Installed product key detected - attempting to activate the following product: SKU ID: dedfa23d-6ed1-XXXX-85dc-XXXXXXXXXXXX LICENSE NAME: Office 16, Office16StandardVL_KMS_Client edition LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel Last 5 characters of installed product key: DRTFM ERROR CODE: 0xC004F038 ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. The count reported by your Key Management Service (KMS )is insufficient. Please contact your system administrator. NOTICE: A KB article has been detected for activation failure: 0xC004F038 FOR MORE INFORMATION PLEASE VISIT: http://support.microsoft.com/kb/2870357#Error0xC004F038 --------------------------------------- --------------------------------------- ---Exiting-----------------------------
C:\Windows\system32>cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dcmid Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- Client Machine ID (CMID): 664d8304-5231-4878-a867-d4446795d41e --------------------------------------- ---Exiting----------------------------- ライセンスキーなどステータス表示 †
C:\Windows\system32>cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved. ---Processing-------------------------- --------------------------------------- PRODUCT ID: 00340-XXXXXXX-00000-AA587 SKU ID: dedfa23d-6ed1-XXXX-85dc-XXXXXXXXXXXX LICENSE NAME: Office 16, Office16StandardVL_KMS_Client edition LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel BETA EXPIRATION: 1601/01/01 LICENSE STATUS: ---LICENSED--- ERROR CODE: 0x4004F040 (for information purposes only as the status is licensed) ERROR DESCRIPTION: The Software Licensing Service reported that the product was activated but the owner should verify the Product Use Rights. REMAINING GRACE: 179 days (259190 minute(s) before expiring) ←残り日数 Last 5 characters of installed product key: DRTFM ←現ライセンスキーで汎用ボリューム ライセンス キー (GVLK)になる Activation Type Configuration: ALL DNS auto-discovery: KMS name not available KMS machine registry override defined: win10-kms-sv:1688 Activation Interval: 60 minutes Renewal Interval: 2880 minutes KMS host caching: Enabled --------------------------------------- --------------------------------------- ---Exiting----------------------------- 実際の認証作業 †クラアントの再起動や、Excel等を起動する。 サーバ側で以下のコマンドを実行し現在の数を5以上になると認証ができる。 クライアントにはキーの入力は不要
cscript c:\windows\system32\slmgr.vbs /dlv 98ebfe73-2084-4c97-932c-c0cd1643bea7
KMSサーバ設定変更のとき †図のツールを使用する(管理者で起動が必要) 参考 †
|