Как активировать windows server 2016 datacenter

Table of Contents

As you know, Windows Server is a specialized operating system which is designed for server only. In today’s post, I will show you how to activate Windows in your VPS or dedicated server for FREE using KMS client product keys. So you can renew it whenever you want. Actually, the license will be renewed automatically every 7 days by default. In this way, just do it one time and forget it completely.

Before you begin

  • If you’re using an evaluation edition of Windows Server. Let’s follow this post to convert then activate it to the licensed version.
  • The methods work with Windows Server 2022/2019/2016, Windows Server version 1809, 1803, 1709. and Windows Server 2008/2012 (R2).
  • KMS license is valid for 180 days only. But it will be renewed automatically before the expiration date if you are online. However, you can renew your Office manually anytime (even when its expired) by running the activation command or script again.

As you can see in the below screenshot, we’re using a copy of Windows Server 2016 Datacenter and it is not activated. We need to activate it to made it function normally and remove the licese watermark on the desktop.

gKENxmD7fz1CXX3W9kXYkleXiQuJ4rEKtfxGezW5jbO3Irf6TfdKEFi9cPUm

Method 1: Manual activation

The first way, we can use the Windows Command Prompt (CMD) to activate the Windows Server 2016 Datacenter license free forever.

1️⃣ Click on the search icon, type cmd in the Windows search box, right click on the best match Command Prompt then select Run as administrator.

2SQRyaIKy9eTKIfA1kIbUD72REcZ2Chjq6k9iSKJcNydiOfQozSuqnF0Ksx9okW40E

2️⃣ Copy, right click to paste all below commands into CMD window at once then hit Enter.

cscript //nologo %windir%\system32\slmgr.vbs /ipk CB7KF-BWN84-R7R2Y-793K2-8XDDG
cscript //nologo %windir%\system32\slmgr.vbs /skms kms.msgang.com
cscript //nologo %windir%\system32\slmgr.vbs /ato

Note

Note: If you see the error 0xC004F074, it means that your internet connection is unstable or the server is busy. Please make sure your device is online and try the command “ato” again until you succeed.

3️⃣ Your Windows Server 2016 Datacenter is activated using a KMS key. It’ll reactivate after every 7 days automatically. So, your Windows is permanently activated.

::Output
C:\>cscript //nologo %windir%\system32\slmgr.vbs /ipk CB7KF-BWN84-R7R2Y-793K2-8XDDG
Installed product key CB7KF-BWN84-R7R2Y-793K2-8XDDG successfully.

C:\>cscript //nologo %windir%\system32\slmgr.vbs /skms kms.msgang.com
Key Management Service machine name set to kms.msgang.com successfully.

C:\>cscript //nologo %windir%\system32\slmgr.vbs /ato
Activating Windows(R), ServerDatacenter edition (21c56779-b449-4d20-adfc-eece0e1ad74b) ...
Product activated successfully.

Note

Tip: Why we need cscript in the commands. By just executing a vbs script file, output gets sent to dialog boxes, which need your interaction. Using cscript, the desired output gets printed to your current stdout.

4️⃣ Finally, check activation status of your Windows Server again. Open Windows Settings then check Windows Activation.

PvMfOa2fOXs5SIPW4724EnJDuB9ZBG00S069Wn0wfGPZ1t12MlR8gTUFitrF

Method 2: Using PowerShell

The second way, we can use the Windows PowerShell to activate the Windows license. The steps are similar with using cmd method, but the commands would be changed a little bit.

1️⃣ Click on the search icon, type powershell in the Windows search box, right click on the best match Windows PowerShell then select Run as administrator.

2SQRyaIKy9eTKIfA1kIbUD72REcZ2Chjq6k9iSKJcNydiOfQozSuqnF0KT57twn02LUGjdXgr6FJXQLIdXl2Y9xchFsH79ET9DeTHkanXtlFLfImzxfgy

2️⃣ Copy, right click to paste all below commands into CMD window at once then hit Enter.

cscript //nologo $env:systemroot\system32\slmgr.vbs /ipk CB7KF-BWN84-R7R2Y-793K2-8XDDG
cscript //nologo $env:systemroot\system32\slmgr.vbs /skms kms.msgang.com
cscript //nologo $env:systemroot\system32\slmgr.vbs /ato

3️⃣ Your Windows Server 2016 Datacenter is activated using a KMS key. It’ll reactivate after every 7 days automatically. So, your Windows is permanently activated.

#Output
PS C:\> cscript //nologo $env:systemroot\system32\slmgr.vbs /ipk CB7KF-BWN84-R7R2Y-793K2-8XDDG
Installed product key CB7KF-BWN84-R7R2Y-793K2-8XDDG successfully.

PS C:\> cscript //nologo $env:systemroot\system32\slmgr.vbs /skms kms.msgang.com
Key Management Service machine name set to kms.msgang.com successfully.

PS C:\> cscript //nologo $env:systemroot\system32\slmgr.vbs /ato
Activating Windows(R), ServerDatacenter edition (8c1c5410-9f39-4805-8c9d-63a07706358f) ...
Product activated successfully.

Method 3: Using batch script

The benefits of this method are:

  • When activating with the batch script, you don’t have type the activation commands manually on each client computers.
  • The script can activate all Windows client (7/8/8.1./10/11) and Windows server (2008/2008R2/2012/2012R2/2016/2019/2022) editions.
  • The script can be used on either Windows 64-bit or Windows 32-bit.
  • You don’t need to know which Windows edition you’re using. Script detects your Windows edition automatically then activates it.

This one is not recommended anymore due to the new update of Microsoft. In case, if you have to use the batch script, you can continue with below steps:

1️⃣ The first step is download the batch script to your computer by clicking on the below button. Our script is safe, but you should verify the security and contents of any script from the internet you are not familiar with.

2️⃣ Right click on downloaded zip file then extract it.

qBwgz7bcvQoi09b1FcBXh2AWLwcIlqgnhDIHxblcndKnwACtquDMU9Rq6P2T

3️⃣ Navigate to the extracted folder. Right-click on the batch file, select Run as administrator to run the batch file with admin rights.

nT21MnqYsN8wAEvL4hfo1f1dnQB2otAIzZKRKp0dB9YIVfRR2PmZGQtiW7sO

Windows may give you a pop-up window saying Windows protected your PC. You would receive a popup if you attempt to run or install an application that Windows doesn’t recognize. To run the script, click on the More info link then click Run anyway button.

MWcIRPwvEz4zPy3WRPoJHoicM8HkYKfHMUsA3fdIb7SOi7vZ1S3VUAvLuanG

The script will run automatically. If has no issue, you should see the below output. The Windows has been activated. You can now press any key to close the command prompt window.

::Output
.....................................................................................
#Project: Activating Microsoft software products for FREE without additional software
.....................................................................................
#Supported products: Windows 7/8/10/11/2008/2008R2/2012/2012R2/2016/2019/2022
.....................................................................................
You're using: Microsoft Windows Server 2016 Datacenter 
.....................................................................................
.....................................................................................
Activating your Windows using product key: CB7KF-BWN84-R7R2Y-793K2-8XDDG
Product activated successfully.
.....................................................................................
Your Windows license details:

Description: Windows(R) Operating System, VOLUME_KMSCLIENT channel
License Status: Licensed
Product Key Channel: Volume:8XDDG
Partial Product Key: KHKQY
Volume activation expiration: 259200 minute(s) (180 day(s))

Press any key to close this window.

If you want to create your own batch script by yourself. You can click on the below button to retrieve the code:

@echo off
color f0
mode con cols=98 lines=30
title Activate Windows license for FREE - msgang.com
cls
echo .....................................................................................
echo #Project: Activating Microsoft software products for FREE without additional software
echo .....................................................................................
echo #Supported products: Windows 7/8/10/11/2008/2008R2/2012/2012R2/2016/2019/2022
echo .....................................................................................
for /f "tokens=* delims== " %%i in ('"powershell -c (Get-CimInstance Win32_OperatingSystem).Caption"') do (set edition=%%i)
echo You're using: %edition%
echo .....................................................................................

::Microsoft Windows 10
if /i "%edition%" equ "Microsoft Windows 10 Home" (set productkey=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99)
if /i "%edition%" equ "Microsoft Windows 10 Home N" (set productkey=3KHY7-WNT83-DGQKR-F7HPR-844BM)
if /i "%edition%" equ "Microsoft Windows 10 Home Single Language" (set productkey=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH)
if /i "%edition%" equ "Microsoft Windows 10 Pro" (set productkey=W269N-WFGWX-YVC9B-4J6C9-T83GX)
if /i "%edition%" equ "Microsoft Windows 10 Pro N" (set productkey=MH37W-N47XK-V7XM9-C7227-GCQG9)
if /i "%edition%" equ "Microsoft Windows 10 Pro for Workstations" (set productkey=NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J)
if /i "%edition%" equ "Microsoft Windows 10 Pro N for Workstations" (set productkey=9FNHH-K3HBT-3W4TD-6383H-6XYWF)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise N" (set productkey=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4)
if /i "%edition%" equ "Microsoft Windows 10 Education" (set productkey=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2)
if /i "%edition%" equ "Microsoft Windows 10 Education N" (set productkey=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise LTSC 2019" (set productkey=M7XTQ-FN8P6-TTKYV-9D4CC-J462D)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise LTSC 2021" (set productkey=M7XTQ-FN8P6-TTKYV-9D4CC-J462D)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise LTSB 2016" (set productkey=DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise 2015 LTSB" (set productkey=WNMTR-4C88C-JK8YV-HQ7T2-76DF9)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise Evaluation" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)

::Microsoft Windows 11
if /i "%edition%" equ "Microsoft Windows 11 Home" (set productkey=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99)
if /i "%edition%" equ "Microsoft Windows 11 Home N" (set productkey=3KHY7-WNT83-DGQKR-F7HPR-844BM)
if /i "%edition%" equ "Microsoft Windows 11 Home Single Language" (set productkey=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH)
if /i "%edition%" equ "Microsoft Windows 11 Pro" (set productkey=W269N-WFGWX-YVC9B-4J6C9-T83GX)
if /i "%edition%" equ "Microsoft Windows 11 Pro N" (set productkey=MH37W-N47XK-V7XM9-C7227-GCQG9)
if /i "%edition%" equ "Microsoft Windows 11 Pro for Workstations" (set productkey=NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J)
if /i "%edition%" equ "Microsoft Windows 11 Pro N for Workstations" (set productkey=9FNHH-K3HBT-3W4TD-6383H-6XYWF)
if /i "%edition%" equ "Microsoft Windows 11 Enterprise" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)
if /i "%edition%" equ "Microsoft Windows 11 Enterprise N" (set productkey=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4)
if /i "%edition%" equ "Microsoft Windows 11 Education" (set productkey=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2)
if /i "%edition%" equ "Microsoft Windows 11 Education N" (set productkey=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ)
if /i "%edition%" equ "Microsoft Windows 11 Enterprise Evaluation" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)

::Microsoft Windows Server 2012
if /i "%edition%" equ "Microsoft Windows Server 2012" (set productkey=BN3D2-R7TKB-3YPBD-8DRP2-27GG4)
if /i "%edition%" equ "Microsoft Windows Server 2012 Essentials" (set productkey=HTDQM-NBMMG-KGYDT-2DTKT-J2MPV)
if /i "%edition%" equ "Microsoft Windows Server 2012 Standard" (set productkey=XC9B7-NBPP2-83J2H-RHMBY-92BT4)
if /i "%edition%" equ "Microsoft Windows Server 2012 Datacenter" (set productkey=48HP8-DN98B-MYWDG-T2DCC-8W83P)

::Microsoft Windows Server 2012 R2
if /i "%edition%" equ "Microsoft Windows Server 2012 Essentials" (set productkey=KNC87-3J2TX-XB4WP-VCPJV-M4FWM)
if /i "%edition%" equ "Microsoft Windows Server 2012 R2 Standard" (set productkey=D2N9P-3P6X9-2R39C-7RTCD-MDVJX)
if /i "%edition%" equ "Microsoft Windows Server 2012 R2 Datacenter" (set productkey=W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9)

::Microsoft Windows Server 2016
if /i "%edition%" equ "Microsoft Windows Server 2016 Essentials" (set productkey=JCKRF-N37P4-C2D82-9YXRT-4M63B)
if /i "%edition%" equ "Microsoft Windows Server 2016 Standard" (set productkey=WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY)
if /i "%edition%" equ "Microsoft Windows Server 2016 Datacenter" (set productkey=CB7KF-BWN84-R7R2Y-793K2-8XDDG)

::Microsoft Windows Server 2019
if /i "%edition%" equ "Microsoft Windows Server 2019 Essentials" (set productkey=WVDHN-86M7X-466P6-VHXV7-YY726)
if /i "%edition%" equ "Microsoft Windows Server 2019 Standard" (set productkey=N69G4-B89J2-4G8F4-WWYCC-J464C)
if /i "%edition%" equ "Microsoft Windows Server 2019 Datacenter" (set productkey=WMDGN-G9PQG-XVVXX-R3X43-63DFG)

::Microsoft Windows Server 2022
if /i "%edition%" equ "Microsoft Windows Server 2022 Standard" (set productkey=VDYBN-27WPP-V4HQT-9VMD4-VMK7H)
if /i "%edition%" equ "Microsoft Windows Server 2022 Datacenter" (set productkey=WX4NM-KYWYW-QJJR4-XV3QB-6VM33)

::Microsoft Windows 8
if /i "%edition%" equ "Microsoft Windows 8 Pro" (set productkey=NG4HW-VH26C-733KW-K6F98-J8CK4)
if /i "%edition%" equ "Microsoft Windows 8 Enterprise" (set productkey=32JNW-9KQ84-P47T8-D8GGY-CWCK7)

::Microsoft Windows 8.1
if /i "%edition%" equ "Microsoft Windows 8.1 Pro" (set productkey=GCRJD-8NW9H-F2CDX-CCM8D-9D6T9)
if /i "%edition%" equ "Microsoft Windows 8.1 Enterprise" (set productkey=MHF9N-XY6XB-WVXMC-BTDCT-MKKG7)

::Windows Server versions 20H2, 2004, 1909, 1903, and 1809 (Semi-Annual Channel versions)
if /i "%edition%" equ "Microsoft Windows Server Standard" (set productkey=VDYBN-27WPP-V4HQT-9VMD4-VMK7H)
if /i "%edition%" equ "Microsoft Windows Server Datacenter" (set productkey=WX4NM-KYWYW-QJJR4-XV3QB-6VM33)

::Microsoft Windows 7
wmic os get caption | find /v "Caption" > %temp%\ver.txt
set /p edition=<%temp%\ver.txt

echo.%edition% | findstr /C:"Microsoft Windows 7 Professional" >nul 2>&1
if not errorlevel 1 (set productkey=FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4) else (break)
echo.%edition% | findstr /C:"Microsoft Windows 7 Enterprise" >nul 2>&1
if not errorlevel 1 (set productkey=33PXH-7Y6KF-2VJC9-XBBR8-HVTHH) else (break)

::Microsoft Windows Server 2008 R2
echo.%edition% | findstr /C:"Microsoft Windows Server 2008 R2 Standard" >nul 2>&1
if not errorlevel 1 (set productkey=YC6KT-GKW9T-YTKYR-T4X34-R7VHC) else (break)
echo.%edition% | findstr /C:"Microsoft Windows Server 2008 R2 Enterprise" >nul 2>&1
if not errorlevel 1 (set productkey=489J6-VHDMP-X63PK-3K798-CPX3Y) else (break)
echo.%edition% | findstr /C:"Microsoft Windows Server 2008 R2 Datacenter" >nul 2>&1
if not errorlevel 1 (set productkey=74YFP-3QFB3-KQT8W-PMXWJ-7M648) else (break)

::Microsoft Windows Server 2008
echo.%edition% | findstr /C:"Microsoftr Windows Serverr 2008 Standard" >nul 2>&1
if not errorlevel 1 (set productkey=TM24T-X9RMF-VWXK6-X8JC9-BFGM2) else (break)
echo.%edition% | findstr /C:"Microsoftr Windows Serverr 2008 Enterprise  " >nul 2>&1
if not errorlevel 1 (set productkey=YQGMW-MPWTJ-34KDK-48M3W-X4Q6V) else (break)
echo.%edition% | findstr /C:"Microsoftr Windows Server 2008 Datacenter" >nul 2>&1
if not errorlevel 1 (set productkey=7M67G-PC374-GR742-YH8V4-TCBY3) else (break)

echo .....................................................................................
echo Activating your Windows using product key: %productkey%

cscript %windir%\system32\slmgr.vbs /upk >nul 2>&1
cscript %windir%\system32\slmgr.vbs /ckms >nul 2>&1
cscript %windir%\system32\slmgr.vbs /cpky >nul 2>&1
cscript %windir%\system32\slmgr.vbs /skms kms.msgang.com >nul 2>&1
cscript %windir%\system32\slmgr.vbs /ipk %productkey% >nul 2>&1
cscript %windir%\system32\slmgr.vbs /ato | find /i "successfully" 

echo .....................................................................................
echo Your Windows license details:
echo.
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Description"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Licensed"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Channel:"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Partial"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "expiration"
echo.

echo Press any key to close this window.
pause >nul

@echo off
color f0
mode con cols=98 lines=30
title Activate Windows license for FREE - msgang.com
cls
echo .....................................................................................
echo #Project: Activating Microsoft software products for FREE without additional software
echo .....................................................................................
echo #Supported products: Windows 7/8/10/11/2008/2008R2/2012/2012R2/2016/2019/2022
echo .....................................................................................
for /f "tokens=* delims== " %%i in ('"powershell -c (Get-CimInstance Win32_OperatingSystem).Caption"') do (set edition=%%i)
echo You're using: %edition%
echo .....................................................................................

::Microsoft Windows 10
if /i "%edition%" equ "Microsoft Windows 10 Home" (set productkey=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99)
if /i "%edition%" equ "Microsoft Windows 10 Home N" (set productkey=3KHY7-WNT83-DGQKR-F7HPR-844BM)
if /i "%edition%" equ "Microsoft Windows 10 Home Single Language" (set productkey=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH)
if /i "%edition%" equ "Microsoft Windows 10 Pro" (set productkey=W269N-WFGWX-YVC9B-4J6C9-T83GX)
if /i "%edition%" equ "Microsoft Windows 10 Pro Education" (set productkey=6TP4R-GNPTD-KYYHQ-7B7DP-J447Y)
if /i "%edition%" equ "Microsoft Windows 10 Pro Education N" (set productkey=YVWGF-BXNMC-HTQYQ-CPQ99-66QFC)
if /i "%edition%" equ "Microsoft Windows 10 Pro N" (set productkey=MH37W-N47XK-V7XM9-C7227-GCQG9)
if /i "%edition%" equ "Microsoft Windows 10 Pro for Workstations" (set productkey=NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J)
if /i "%edition%" equ "Microsoft Windows 10 Pro N for Workstations" (set productkey=9FNHH-K3HBT-3W4TD-6383H-6XYWF)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise N" (set productkey=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4)
if /i "%edition%" equ "Microsoft Windows 10 Education" (set productkey=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2)
if /i "%edition%" equ "Microsoft Windows 10 Education N" (set productkey=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ)
if /i "%edition%" equ "Microsoft Windows 10 Enterprise 2016 LTSB" (set productkey=DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ)

::Microsoft Windows 11
if /i "%edition%" equ "Microsoft Windows 11 Home" (set productkey=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99)
if /i "%edition%" equ "Microsoft Windows 11 Home N" (set productkey=3KHY7-WNT83-DGQKR-F7HPR-844BM)
if /i "%edition%" equ "Microsoft Windows 11 Home Single Language" (set productkey=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH)
if /i "%edition%" equ "Microsoft Windows 11 Pro" (set productkey=W269N-WFGWX-YVC9B-4J6C9-T83GX)
if /i "%edition%" equ "Microsoft Windows 11 Pro Education" (set productkey=6TP4R-GNPTD-KYYHQ-7B7DP-J447Y)
if /i "%edition%" equ "Microsoft Windows 11 Pro Education N" (set productkey=YVWGF-BXNMC-HTQYQ-CPQ99-66QFC)
if /i "%edition%" equ "Microsoft Windows 11 Pro N" (set productkey=MH37W-N47XK-V7XM9-C7227-GCQG9)
if /i "%edition%" equ "Microsoft Windows 11 Pro for Workstations" (set productkey=NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J)
if /i "%edition%" equ "Microsoft Windows 11 Pro N for Workstations" (set productkey=9FNHH-K3HBT-3W4TD-6383H-6XYWF)
if /i "%edition%" equ "Microsoft Windows 11 Enterprise" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)
if /i "%edition%" equ "Microsoft Windows 11 Enterprise N" (set productkey=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4)
if /i "%edition%" equ "Microsoft Windows 11 Education" (set productkey=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2)
if /i "%edition%" equ "Microsoft Windows 11 Education N" (set productkey=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ)
if /i "%edition%" equ "Microsoft Windows 11 Enterprise Evaluation" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)

::Microsoft Windows Server 2012
if /i "%edition%" equ "Microsoft Windows Server 2012" (set productkey=BN3D2-R7TKB-3YPBD-8DRP2-27GG4)
if /i "%edition%" equ "Microsoft Windows Server 2012 Essentials" (set productkey=HTDQM-NBMMG-KGYDT-2DTKT-J2MPV)
if /i "%edition%" equ "Microsoft Windows Server 2012 Standard" (set productkey=XC9B7-NBPP2-83J2H-RHMBY-92BT4)
if /i "%edition%" equ "Microsoft Windows Server 2012 Datacenter" (set productkey=48HP8-DN98B-MYWDG-T2DCC-8W83P)

::Microsoft Windows Server 2012 R2
if /i "%edition%" equ "Microsoft Windows Server 2012 Essentials" (set productkey=KNC87-3J2TX-XB4WP-VCPJV-M4FWM)
if /i "%edition%" equ "Microsoft Windows Server 2012 R2 Standard" (set productkey=D2N9P-3P6X9-2R39C-7RTCD-MDVJX)
if /i "%edition%" equ "Microsoft Windows Server 2012 R2 Datacenter" (set productkey=W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9)

::Microsoft Windows Server 2016
if /i "%edition%" equ "Microsoft Windows Server 2016 Essentials" (set productkey=JCKRF-N37P4-C2D82-9YXRT-4M63B)
if /i "%edition%" equ "Microsoft Windows Server 2016 Standard" (set productkey=WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY)
if /i "%edition%" equ "Microsoft Windows Server 2016 Datacenter" (set productkey=CB7KF-BWN84-R7R2Y-793K2-8XDDG)

::Microsoft Windows Server 2019
if /i "%edition%" equ "Microsoft Windows Server 2019 Essentials" (set productkey=WVDHN-86M7X-466P6-VHXV7-YY726)
if /i "%edition%" equ "Microsoft Windows Server 2019 Standard" (set productkey=N69G4-B89J2-4G8F4-WWYCC-J464C)
if /i "%edition%" equ "Microsoft Windows Server 2019 Datacenter" (set productkey=WMDGN-G9PQG-XVVXX-R3X43-63DFG)

::Microsoft Windows Server 2022
if /i "%edition%" equ "Microsoft Windows Server 2022 Standard" (set productkey=VDYBN-27WPP-V4HQT-9VMD4-VMK7H)
if /i "%edition%" equ "Microsoft Windows Server 2022 Datacenter" (set productkey=WX4NM-KYWYW-QJJR4-XV3QB-6VM33)

::Microsoft Windows 8
if /i "%edition%" equ "Microsoft Windows 8 Pro" (set productkey=NG4HW-VH26C-733KW-K6F98-J8CK4)
if /i "%edition%" equ "Microsoft Windows 8 Enterprise" (set productkey=32JNW-9KQ84-P47T8-D8GGY-CWCK7)

::Microsoft Windows 8.1
if /i "%edition%" equ "Microsoft Windows 8.1 Pro" (set productkey=GCRJD-8NW9H-F2CDX-CCM8D-9D6T9)
if /i "%edition%" equ "Microsoft Windows 8.1 Enterprise" (set productkey=MHF9N-XY6XB-WVXMC-BTDCT-MKKG7)

::Windows Server versions 20H2, 2004, 1909, 1903, and 1809 (Semi-Annual Channel versions)
if /i "%edition%" equ "Microsoft Windows Server Standard" (set productkey=VDYBN-27WPP-V4HQT-9VMD4-VMK7H)
if /i "%edition%" equ "Microsoft Windows Server Datacenter" (set productkey=WX4NM-KYWYW-QJJR4-XV3QB-6VM33)

::Microsoft Windows 7/2008/2008R2/LTSC
@for /f "tokens=3*" %%i in ('Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName 2^>Nul') do Set "editionx=%%i %%j"

if /i "%editionx%" equ "Windows 7 Professional" (set productkey=FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4)
if /i "%editionx%" equ "Windows 7 Enterprise" (set productkey=33PXH-7Y6KF-2VJC9-XBBR8-HVTHH)

::Microsoft Windows Server 2008 R2
if /i "%editionx%" equ "Windows Server 2008 R2 Standard" (set productkey=YC6KT-GKW9T-YTKYR-T4X34-R7VHC)
if /i "%editionx%" equ "Windows Server 2008 R2 Enterprise" (set productkey=489J6-VHDMP-X63PK-3K798-CPX3Y)
if /i "%editionx%" equ "Windows Server 2008 R2 Datacenter" (set productkey=74YFP-3QFB3-KQT8W-PMXWJ-7M648)

::Microsoft Windows Server 2008
if /i "%editionx%" equ "Windows Server (R) 2008 Standard" (set productkey=TM24T-X9RMF-VWXK6-X8JC9-BFGM2)
if /i "%editionx%" equ "Windows Server (R) 2008 Enterprise" (set productkey=YQGMW-MPWTJ-34KDK-48M3W-X4Q6V)
if /i "%editionx%" equ "Windows Server (R) 2008 Datacenter" (set productkey=7M67G-PC374-GR742-YH8V4-TCBY3)


if /i "%editionx%" equ "Windows 10 Enterprise LTSC 2019" (set productkey=M7XTQ-FN8P6-TTKYV-9D4CC-J462D)
if /i "%editionx%" equ "Windows 10 Enterprise LTSC 2021" (set productkey=M7XTQ-FN8P6-TTKYV-9D4CC-J462D)
if /i "%editionx%" equ "Windows 10 Enterprise Evaluation" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)
if /i "%editionx%" equ "Windows 11 Enterprise Evaluation" (set productkey=NPPR9-FWDCX-D2C8J-H872K-2YT43)
if /i "%editionx%" equ "Windows 10 Enterprise 2015 LTSB" (set productkey=WNMTR-4C88C-JK8YV-HQ7T2-76DF9)



::Microsoft Windows Server 2008
::wmic os get caption | find /v "Caption" > %temp%\ver.txt
::set /p edition8=<%temp%\ver.txt

::Microsoft Windows Server 2008
::echo.%edition8% | findstr /C:"Microsoftr Windows Serverr 2008 Standard" >nul 2>&1
::if not errorlevel 1 (set productkey=TM24T-X9RMF-VWXK6-X8JC9-BFGM2) else (break)
::echo.%edition8% | findstr /C:"Microsoftr Windows Serverr 2008 Enterprise  " >nul 2>&1
::if not errorlevel 1 (set productkey=YQGMW-MPWTJ-34KDK-48M3W-X4Q6V) else (break)
::echo.%edition8% | findstr /C:"Microsoftr Windows Serverr 2008 Datacenter  " >nul 2>&1
::if not errorlevel 1 (set productkey=7M67G-PC374-GR742-YH8V4-TCBY3) else (break)

echo .....................................................................................
echo Activating your Windows using product key: %productkey%

cscript %windir%\system32\slmgr.vbs /upk >nul 2>&1
cscript %windir%\system32\slmgr.vbs /ckms >nul 2>&1
cscript %windir%\system32\slmgr.vbs /cpky >nul 2>&1
cscript %windir%\system32\slmgr.vbs /skms kms.msgang.com >nul 2>&1
cscript %windir%\system32\slmgr.vbs /ipk %productkey% >nul 2>&1
cscript %windir%\system32\slmgr.vbs /ato | find /i "successfully" 

echo .....................................................................................
echo Your Windows license details:
echo.
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Description"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Licensed"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Channel:"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "Partial"
cscript %windir%\system32\slmgr.vbs /dlv | find /i "expiration"
echo.

echo Press any key to close this window.
pause >nul

Method 4: Using PowerShell script

The last way, we can active Windows license using a PowerShell script. The script details can be found at my GitHub. When using the PowerShell script, you can active all Windows editions (Cliens and Server editions) included: Windows 7/8/8.1/10/11 and Windows Server 2008/2008R2/2012/2016/2019/2022.

This method works similar with the batch script method, but you don’t need to download anything. And we had no pop-up window saying Windows protected your PC anymore.

Window Server 2008/2012/2016 versions are not enabling TLS 1.2 by default. So, we need to enable it first to run the script from internet directly.

[System.Net.ServicePointManager]::SecurityProtocol = 3072

If the TLS 1.2 is not enabled. You would get the following error when trying to run the activation script.

sgqczMvDLo2xGT1x1bRlDnk5IaibsdvElzWyf1RoQdis2HMjskujeNVum1dd

Once the TLS 1.2 is enabled on the system, you can run the below PowerShell command to activate the Windows license automatically.

The script will run automatically. If has no issue, you should see the below output. The Windows Server 2016 Datacenter has been activated.

#Output
PS C:\Users\Administrator> irm win.msgang.com | iex
========================================================================================
Description: Activating Microsoft software products for FREE without additional software
Website: https://msgang.com
Script by: Leo Nguyen
For detailed script execution: https://win.msgang.com
========================================================================================
You're using Microsoft Windows Server 2016 Datacenter
Activating your Windows license...
Done!
========================================================================================
Product Key Channel: Volume:8XDDG
License Status: Licensed
(*)Visit https://msang.com for more products.

Conclusion

Hello Friends! My name is Leo, and I’m excited to share everything I know about activating Microsoft software products. In the past, I managed several YouTube channels on this topic, but they were taken down by Microsoft. That’s why I decided to start this blog to keep the conversation alive without interruptions. I’m committed to sharing my knowledge and insights for as long as possible!

If you would have any questions or concerns, please leave your comments or visit my Discord server. I would be glad to explain in more details. Thank you so much for all your feedback and support!

Buy Me A Coffee

Want to activate others Microsoft products for free? You can follow the below posts:

  • Windows 7/8/8.1/10/11
  • Windows Servers 2008/2012/2016/2019/2022
  • Microsoft Office 2013/2016/2019/2021 (included Visio and Project)

Not a reader? Watch this related video tutorial:

To install and activate Windows Server 2016 Datacenter, you’ll need a valid license key and follow these general steps:

1. Prepare Installation Media:
– Download the Windows Server 2016 ISO file from the Microsoft website or obtain it through your licensing agreement.
– Create a bootable installation media, either using a USB drive or burning the ISO file to a DVD.

2. Boot from Installation Media:
– Insert the bootable USB drive or DVD into the server where you want to install Windows Server 2016 Datacenter.
– Restart the server and boot from the installation media. You may need to adjust the boot order in the BIOS/UEFI settings.

3. Start Installation:
– Follow the on-screen instructions to begin the installation process.
– Choose language, time, currency, and keyboard preferences when prompted.

4. Enter License Key:
– During installation, you’ll be prompted to enter a product key. Input your Windows Server 2016 Datacenter license key when asked.

5. Select Installation Type:
– Choose the installation type. Typically, you’ll select “Custom: Install Windows only (advanced)” unless you have specific requirements.

6. Partition and Format Drives:
– Select the drive or partition
– Format the drive if necessary.

7. Install Windows:
– Proceed with the installation. it will be installed on the selected drive.

8. Complete Installation:
– Follow the on-screen prompts to complete the installation. The server will restart a few times during this process.

9. Activation:
– Once Windows Server 2016 Datacenter is installed and booted up, you must activate it.
– Go to Control Panel > System and Security > System. Scroll down to the Windows activation section. Click on “Activate Windows” and follow the prompts to activate using your product key.

10. Validation:
– After activation, ensure that the Windows Server 2016 data center is activated correctly by checking the system properties or using the “slmgr” command-line tool.

Following these steps should guide you through the installation and activation of Windows Server 2016 Datacenter. Make sure you have a valid license key before proceeding.

To get your Microsoft Windows Server Datacenter Product key.

Buy from our TECHLOVER STORE

Buy from our JUMIA STORE

Buy from our KONGA STORE

Buy from our SELAR STORE

Originally posted 2024-02-19 09:31:57.

Post Views: 248

В этой статье мы рассмотрим процедуру развертывания и настройки корпоративного KMS сервера, который может активировать новую серверную платформу от Microsoft — Windows Server 2016. Все основные нюансы работы системы KMS активации, описанные в статье FAQ по KMS активации полностью применимы и к Windows Server 2016.

Windows Server 2016 может сам выступать в качестве сервера KMS активации при наличии настроенной роли Volume Activation Services, либо активироваться на другом KMS сервере (здесь есть дополнительные требования).

Содержание:

  • Установка KMS сервера на Windows Server 2016
  • Обновление текущего KMS сервера для поддержки активации Windows Server 2016
  • Активация KMS сервера CSVLK ключом
  • Активация Windows Server 2016 на KMS сервере
  • Публичные KMS ключи для Windows Server 2016
  • Активация Windows Server 2016 через Active Directory Based Activation

Установка KMS сервера на Windows Server 2016

В том случае, если KMS сервер в домене отсутствуют, роль Volume Activation Services, реализующую функционал KMS активации, можно установить на Windows Server 2016. Подробно этот процесс установки и настройки роли рассматривать не будем, здесь все аналогичной тому, как это было реализовано на Windows Server 2012 R2 (Установка KMS сервера на базе Windows Server 2012 R2).

Достаточно установит роль Volume Activation Services. Сделать это можно из консоли Server Manager или из PowerShell (быстрее и проще):

Install-WindowsFeature -Name VolumeActivation  -IncludeAllSubFeature –Include ManagementTools

Установка роли Volume Activation Services

Примечание. В моем случае, при попытке настройки роли Volume Activation Services с помощью графического мастера, появлялась ошибка “vmw.exe has stopped working”. Как-то победить ее не получилось, так что все дальнейшие операции настройки KMS сервера выполнялись из командой строки.

Обновление текущего KMS сервера для поддержки активации Windows Server 2016

В том случае, если в вашей организации уже развернут KMS сервер на одной из предыдущих версий Windows, совсем не обязательно разворачивать новый Server 2016 с ролью KMS сервера. Возможно проапгрейдить имеющийся сервер для поддержки KMS активации Server 2016.

Если ваш KMS сервер работает под управлением Windows Server 2012, нужно установить два обновления, ссылки на которых имеются в следующих KB:

  1. KB3058168 https://support.microsoft.com/en-us/kb/3058168 (это обновление требуется для поддержки KMS активации клиентов Windows 10)
  2. KB3172615 https://support.microsoft.com/en-us/kb/3172615 — обновление, позволяющее активировать клиентов Windows Server 2016 и Windows 10 LTSB (1607)

В том случае, если KMS хост развернут на Windows Server 2012 R2, требуется установка обновлений из следующих KB:

  1. Как и в предыдущем случае KB3058168
  2. KB3172614 https://support.microsoft.com/kb/3172614

Для роли KMS на Windows Server 2008R2 (эта версия ОС находится в режиме расширенной поддержки), таких обновления нет. Таким образом, использовать KMS на Windows Server 2008 R2 для активации Windows Server 2016 или Windows 10 Enterprise 2016 LTSB нельзя.

Активация KMS сервера CSVLK ключом

После установки / обновления KMS сервера, нужно активировать его ключом CSVLK (так называемый KMS Host Key). Получить этот ключ можно с сайта Microsoft Volume License (VLSC). Нужный ключ называется Windows Srv 2016 DataCtr/Std KMS и находится в разделе License -> Relationship Summary -> Product Keys.

Затем нужно установить ключ командой:

cscript.exe %windir%\system32\slmgr.vbs /ipk <xxxx-xxxx-xxxx-xxxx-xxxx>

и активировать KMS сервер

cscript.exe %windir%\system32\slmgr.vbs /ato

В том случае, если система изолированная от интернета, активировать KMS сервер можно по телефону:

Получим ID установки (Installation ID)

cscript.exe %windir%\system32\slmgr.vbs /dti

Звоним в центр активации Microsoft своей страны (список телефонов есть в файле %windir%System32\SPPUI\Phone.inf) и получаем свой код подтверждения (confirmation ID)

Активация KMS сервера для Windows Server 2016 по телефону

И применяем код:

cscript.exe %windir%\system32\slmgr.vbs /atp <ConfirmationID>

Проверить успешность активации KMS сервера можно с помощью команды:

cscript.exe %windir%\system32\slmgr.vbs /dlv

VOLUME_KMS_WS16-channel

На успешность активации KMS хоста указывают значения VOLUME_KMS_WS16 channel и License Status: Licensed.

Активация Windows Server 2016 на KMS сервере

После активации KMS сервер может активировать компьютеры с Windows Server 2016. Для активации на клиенте должен быть указан специальный публичный ключ установки клиента KMS ( представлен ниже).

Указать ключ установки можно так:

cscript.exe %windir%\system32\slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

Зададим адрес KMS сервера (не обязательно при наличии в домене DNS записи SRV (_VLMCS), по которой клиент может сам найти KMS сервер в домене).

cscript.exe %windir%\system32\slmgr.vbs /skms kms-server.winitpro.ru:1688

И активируем ОС:

cscript.exe %windir%\system32\slmgr.vbs /ato

Публичные KMS ключи для Windows Server 2016

Список общедоступных KMS ключей для разных редакции Windows Server 2016 представлен в таблице ниже:

Редакция ОС KMS клоч
Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63B

Активация Windows Server 2016 через Active Directory Based Activation

Как и в случае с Windows 2012, Windows Server 2016 поддерживает автоматическую активацию в домене через AD — Active Directory Based Activation (ADBA). Как и ранее, для работы этого типа активации, нужно соответствующим образом настроить службу Volume Activation Services (подробности описаны здесь)

6 марта 2025 г. 17:42

498

Содержание:

  1. Как проверить статус активации
  2. Активация Windows Server 2016 Standard через cmd
  3. Активация через графический интерфейс
  4. Что делать, если активация не проходит

Настроили сервер, всё работает, но… «Ваша копия Windows не активирована»? Это не просто раздражающее сообщение — без активации сервер может внезапно начать ограничивать функциональность. А если Windows Server 2016 управляет важными сервисами, ждать сюрпризов точно не хочется. Разбираемся, как активировать Windows Server 2016 Standard без лишних сложностей и возможных ошибок.

Как проверить статус активации

Прежде чем приступать к активации, стоит проверить статус системы. Для этого:

  • Запустите командную строку нажав Win + R  и введите cmd.
  • Впишите команду: slmgr /dli.
  • Всплывающее окно покажет статус лицензии.

Если сервер уже активирован, можно расслабиться. Если нет — выбираем способ активации ниже.

Активация Windows Server 2016 Standard через cmd

Для тех, кто не боится команд и хочет быстро активировать сервер:

  • Открываем командную строку (от имени администратора).
  • Вводим ключ продукта (замените XXXXX… на ваш ключ): slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

  • Если у вас нет ключа активации Виндовс сервер 2016, дешево и быстро его можно приобрести ЗДЕСЬ
  • Запускаем процесс активации: slmgr /ato

  • Проверяем результат командой: slmgr /dli

Если система ответила, что активация выполнена — поздравляем, ваш сервер теперь официально активирован!

Активация через графический интерфейс

Для тех, кто предпочитает не вводить команды вручную, Windows Server 2016 активация может быть выполнена следующим образом:

  • Открываем «Параметры Windows» (нажимаем Win + I).
  • Заходим в «Обновление и безопасность»«Активация».
  • Нажимаем «Изменить ключ продукта».

  • Вводим лицензионный ключ, который недорого и с моментальной доставкой продается здесь, и жмём «Далее».
  • Дожидаемся завершения процесса активации.

Этот вариант подойдёт, если вы не хотите возиться с командной строкой, но результат будет точно таким же. 

Что делать, если активация не проходит

Иногда Windows Server 2016 может отказываться активироваться, даже если ключ введен правильно. Разберём основные причины и способы их устранения:

  • Если сервер не подключен к интернету, активация не сможет пройти. Проверьте, есть ли доступ к сети, и попробуйте снова.
  • Если введенный ключ не подходит, убедитесь, что он соответствует вашей версии Windows Server 2016. Например, ключ для Standard-редакции не подойдёт для Datacenter.
  • Иногда изменения не вступают в силу сразу. Перезагрузите сервер и попробуйте активировать систему снова.
  • Бывает, что сервера Microsoft временно недоступны. В таком случае лучше подождать некоторое время и повторить попытку активации позже.
  • Если система давно не обновлялась, могут возникнуть проблемы с активацией. Установите все доступные обновления через центр обновления Windows и попробуйте снова.

Если все методы не помогают, возможно, проблема в самом ключе. В этом случае лучше приобрести лицензионный ключ, чтобы избежать ограничений и нестабильной работы сервера.

In this article I will guide you how to Activate Windows Server 2016 Evaluation to full version (Standard or Datacenter edition)

To activate Windows Server 2016 Evaluation to full version, you need upgrade Windows Server 2016 Evaluation to full version first (Standard or Datacenter edition). Then you use Windows Server 2016 Standard key or Datacenter key to activate it.

You can download Windows Server 2016 Evaluation from Microsoft here: https://getproductkey.net/download-windows-server-2016-standard-iso-free/

I add the video tutorial below

Step 1: You open cmd (run as administrator), then you type

dism /online /get-targeteditions

You will see Windows Server 2016 editions you can upgrade (Windows Server 2016 Standard/Datacenter)

Step 2: You copy and paste this code in cmd

If you want to upgrade Windows Server 2016 Evaluation to Standard you copy and paste this code:

dism /online /set-edition:serverstandard /productkey:N69G4-B89J2-4G8F4-WWYCC-J464C /accepteula

If you want to upgrade Windows Server 2016 Evaluation to Datacenter you you copy and paste this code:

dism /online /set-edition:serverdatacenter /productkey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /accepteula

Note: if you see “upgrade failed”, you restart your Windows Server 2016. It will upgrade Windows Server 2016 Evaluation to full version.

Step 3: After you upgrade Windows Server 2016 Evaluation to full version, you use Windows Server 2016 product key to activate it.

You can buy Windows Server 2016 Standard product key for $60/key (lifetime) here: https://cheapproductkeys.com/product/windows-server-2016-standard-product-key/

You can buy Windows Server 2016 Datacenter product key for $100/key (lifetime) here: https://cheapproductkeys.com/product/windows-server-2016-datacenter-product-key/

Done. You can check again.

You can watch this video to know how to activate Windows Server 2016 Evaluation to full version

Tag: activate Windows Server 2016 Evaluation to full version, how to activate windows server 2016 evaluation to standard, windows server 2016 evaluation activation, windows server 2016 standard evaluation activation, activar windows server 2016 standard evaluation, activate windows server 2016 evaluation with mak key, how to activate windows server 2016 standard evaluation to full, can windows server 2016 evaluation be activated

Read more:

  • How to activate Windows Server 2022 Evaluation to full version
  • How to activate Windows Server 2019 Evaluation to full version
  • How to activate Windows Server 2016 Evaluation to full version
  • How to activate Windows Server 2012 R2 Evaluation to full version

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как убрать ограничение оперативной памяти на windows 11
  • Код ошибки 0x80131500 магазин windows 10 mobile
  • Как лицензировать windows сервер
  • Windows 10 professional single language
  • Windows не видит флешку в моем компьютере