Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Do you really know how to play KMS? Actual combat chapter

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

I believe you already have a simple understanding of KMS through the previous article "do you really know how to play KMS?". Recently, a lunch asked me two more classic questions, which I would like to share with you today. Another: welcome to follow me for lunch. Thank you very much. This Blog has Fulio.

Q: are clients activated with KMS permanently activated?

A: the client activated by KMS is not permanently activated, please know about it by lunch.

Q: can you activate the data center version by entering the standard version of KMS KEY on the KMS server

A: entering the KEY of the standard version of KMS on the KMS server does not support activating the data center version, but if you want to enter the KEY of the data center version, you can activate the data center and the standard version. Because the data center version is a higher version than the standard version and is backward compatible, it supports activating the data center and the standard version.

Today, I will use a case from the previous article to share with you how to deploy a KMS server.

I believe you have seen the requirements and solutions in the above picture for lunch, so let's start playing.

Briefly talk about the demo environment:

Serial number server name IP address usage 01ADSrv01192.168.1.10 active directory server 02KM***v192.168.1.100KMS server active directory:

"Lue"

KMS server deployment

PS: (be sure to update the system patch before doing it, especially WIN2016)

Installation of KMS components:

Add the server to the domain

Log in to the Volume Licensing Center (after reading the lunch above, you may know that Windows's KEY is backward compatible, so we can find a Win2016 KEY to activate all Win and Win Ser)

Type Windows Server 2016 in the search bar, then click "key"-"KMS" and copy the corresponding key.

Open the server and click "add role function"

Keep the default and click "next"

Select according to the screenshot and click "next"

Refer to the screenshot, select the name of the computer on which you want to install the KMS server, and click next.

Refer to the screenshot, select "batch Activation Service" and click "next"

Keep the default, click "next"

Check the summary information and click "install" after confirming it.

Build the Windows&Windows Server KMS server:

Role installation is complete. Refer to the screenshot and select "batch Activation tool".

There are two options for this step. Do not select AD-based activation. AD-based activation can only be activated after adding domains. It is recommended to select the second option. If adding domains can be activated automatically, if you do not add domains, you can use commands or scripts to activate.

Refer to the screenshot, enter the KMS key of Windows Server 2016, and click "submit".

Refer to the screenshot, select "activate Product" and click "next"

According to the screenshot, there are two activation methods. If the computer can be connected to the Internet, you can choose "online Activation". If you cannot do so, you can choose "phone Activation". If you select "phone Activation", you need to prepare "license ID", "Company name" and "Volume Licensing Center Administrator Information".

Refer to the screenshot and choose according to your own needs.

As you can see in lunch, I have added the published KMS domain above. Next, I need to check whether a KMS SRV record is automatically created on the DNS. (if the DNS is not created automatically, it needs to be created manually. If it is not created, there may be some problems with the automatic activation of the domain client.)

At this point, the KMS of Windows Server&Windows has been deployed, but now you will be surprised to find that it cannot be activated when you use KMS activation. The following error is reported:

This error is reported because Windows's KMS needs 25 counts to activate. If you look at the count, you can query it with the following command: (run CMD as an administrator, and then enter slmgr.vbs / dlv)

As you can see from the screenshot above, the count is now 1, so you need to find a way to increase the count to 25. If you are not in a hurry and there are many clients in the environment, you can wait for the client to update, or you can use a script to raise it to 25. Refer to the screenshot.

Run the command again after the run is complete to check the count

After the count has been raised, activate it again.

Office KMS server deployment:

Above, we have completed the construction of KMS servers for Windows and Windows Server, and then we deploy the Office KMS servers. Friends who have read the previous article of Blog may know that KMS of Windows supports backward compatibility, but Office does not support backward compatibility. If customers want to activate all versions of Office according to demand, then we need to enter the KEY number of Office three times. The deployment steps are as follows:

Log in to the KMS server using the domain account to download the Office KMS deployment program according to the Office version. The download link is as follows:

Microsoft Office 2010 KMS Host license Pack:

Https://www.microsoft.com/zh-cn/download/details.aspx?id=25095

Microsoft Office 2013 Volume license Pack:

Https://www.microsoft.com/zh-cn/download/details.aspx?id=35584

Microsoft Office 2016 Volume license Pack:

Https://www.microsoft.com/en-us/download/details.aspx?id=49164

This demo will take Office 2016 as a demo. The deployment steps for other versions are the same. Multiple versions of Office are supported on one KMS. Run the Office 2016 license package, refer to the screenshot, and click "continue"

After running, the Volume license run Wizard will pop up automatically. Click "next".

Also like Windows, select the key management service and click "next"

Similarly, enter the KEY of KMS for Office 2016 and click submit

Refer to the screenshot, select "activate Product" and click "next"

According to the screenshot, there are two activation methods. If the computer can be connected to the Internet, you can choose "online Activation". If you cannot do so, you can choose "phone Activation". If you select "phone Activation", you need to prepare "license ID", "Company name" and "Volume Licensing Center Administrator" information.

Activation complete, click "next"

Since the KMS of Windows has been configured when it is built, just click "submit".

Then it's time to give away benefits:

Benefit 1:

If you deploy KMS using Windows Server 2016, you must update the system patch to the latest, and if you do not update it, you will report the following error.

Reference link: https://blogs.technet.microsoft.com/askcore/2016/10/19/windows-server-2016-volume-activation-tips/

Benefit 2:

If your current KMS host is Windows Server 2012R2, you do not have the license to purchase Windows Server 2016, but you have purchased the license for Windows 10 and want to use KMS to activate Windows 10, then you need to find a KEY called "Windows Srv 2012R2 DataCtr/Std KMS for Windows 10" in the Volume Licensing Center to activate WIN10 using Win2012, or you need to use the WIN10 client as the KMS host.

Reference link: https://blogs.technet.microsoft.com/askcore/2015/09/15/windows-10-volume-activation-tips/

Benefit 3:

How to view which Windows or Office can be activated by the KMS server. You can run CMD as an administrator and enter slmgr.vbs / dlv all. If the screen does not display, you can add the export command after the command. The command is as follows

Cscript Slmgr.vbs / dlv all > c:\ kms.txt

Benefit 4:

The content of the script (the location of the red mark needs to be changed according to the actual environment, and the above name can be changed freely):

@ echo off

Color 71

Echo malfunction

Echo hopes that all brothers can help me pay attention to this. Thank you very much.

Echo.

Echo Information Technology Department system

Echo.

Echo malfunction

Echo.

Echo. 1.Microsoft Windows activation

Echo.

Echo. 2.Microsoft Office 2010 Activation

Echo.

Echo. 3.Microsoft Office 2013 Activation

Echo.

Echo. 4.Microsoft Office 2016 Activation

Echo.

Echo.

Set KMS_Server=192.168.1.100

Set / p c = Please enter the number and press enter:

If% c% number 1 goto 1

If% c% salary 2 goto 2

If% c% salary 3 goto 3

If% c% goto 4

: office

Setlocal EnableDelayedExpansion

Reg query strRegKey% > nul 2 > nul

If% errorlevel%==0 (set strCurrentKey=%strRegKey%) else (set strCurrentKey=%strRegKey6432%)

For / f "delims="% I in ('reg query% strCurrentKey%') do (

Set strInstPath=%%i

Set strInstPatholog REGREGREGUSZ!

)

: LTrim

If "% strInstPath:~0,1%" = "" set "strInstPath=%strInstPath:~1%" & & goto LTrim

: RTrim

If "% strInstPath:~-1%" = "" set "strInstPath=%strInstPath:~0,-1%" & & goto RTrim

If "% strInstPath:~-1%" neq "\" set strInstPath=%strInstPath%\

The echo office installation directory is strInstPath%

Cd / d strInstPath%

Cscript ospp.vbs / sethst:%KMS_Server%

Cscript ospp.vbs / act

Pause

Exit

: 1

Cscript "% SystemRoot%\ system32\ slmgr.vbs" / skms% KMS_Server%

Cscript "% SystemRoot%\ system32\ slmgr.vbs"-ato

: 2

Set "strRegKey=HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Office\ 14.0\ Common\ InstallRoot / v Path"

Set "strRegKey6432=HKEY_LOCAL_MACHINE\ Software\ Wow6432Node\ Microsoft\ Office\ 14.0\ Common\ InstallRoot / v Path"

Goto office

: 3

Set "strRegKey=HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Office\ 15.0\ Common\ InstallRoot / v Path"

Set "strRegKey6432=HKEY_LOCAL_MACHINE\ Software\ Wow6432Node\ Microsoft\ Office\ 15.0\ Common\ InstallRoot / v Path"

Goto office

: 4

Set "strRegKey=HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Office\ 16.0\ Common\ InstallRoot / v Path"

Set "strRegKey6432=HKEY_LOCAL_MACHINE\ Software\ Wow6432Node\ Microsoft\ Office\ 16.0\ Common\ InstallRoot / v Path"

Goto office

Pause

Exit

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report