• phần 1: Convert Evaluation Edition to Volume License

– Mở CMD (Powershell) với quyền Admin

Thank you for reading this post, don't forget to subscribe!
 
Standard Edition:
DISM /online /Set-edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
 
DataCenter Edition:
DISM /online /Set-edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula
 
  • Phần 2: Kích hoạt KMS
B1: Mở CMD (Powershell) với quyền Admin
 
B2: Gõ 1 trong 3 lệnh sau tùy phiên bản
 
DataCenter: slmgr /ipk WMDGN-G9PQG-XVVXX-R3X43-63DFG
 
Standard: slmgr /ipk N69G4-B89J2-4G8F4-WWYCC-J464C
 
Essentials: slmgr /ipk WVDHN-86M7X-466P6-VHXV7-YY726
 
B3: Gõ lệnh slmgr.vbs /skms kms.digiboy.ir
 
B4: Gõ lệnh slmgr.vbs /ato
 
Sau 6 tháng khi Windows báo hết hạn, gõ lại lệnh slmgr.vbs /ato để có 6 tháng tiếp theo.
 

Key kích hoạt các phiên bản: (Update 15/04/2021)

Windows Server 2019 Essentials: JCKRF-N37P4-C2D82-9YXRT-4M63B
Windows Server 2019 Standard: WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2019 Datacenter: CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2019 Storage: QN4C6-GBJD2-FB422-GHWJK-GJG2R

08/05/2023

For Windows Server 2022

Step 1 – Open PowerShell or Command Prompt as administrator

Step 2 – Convert Windows Server Evaluation to retail edition

To get the available editions:

DISM /Online /Get-TargetEditions

To set your Windows Server to a higher edition:

DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Step 3 – Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

Windows Server 2022 Datacenter: WX4NM-KYWYW-QJJR4-XV3QB-6VM33

Windows Server 2022 Standard: VDYBN-27WPP-V4HQT-9VMD4-VMK7H

Windows Server 2019 Datacenter: WMDGN-G9PQG-XVVXX-R3X43-63DFG

Windows Server 2019 Standard: N69G4-B89J2-4G8F4-WWYCC-J464C

Windows Server 2019 Essentials: WVDHN-86M7X-466P6-VHXV7-YY726

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

Step 4 – Set KMS machine address

slmgr /skms kms_server

Replace kms_server with the real KMS server address (by online search). For now, the working KMS server is kms9.msguide.com.

Step 5 – Activate your Windows

slmgr /ato


How can I activate a Windows Server 2022 product key from the cmd prompt? I’m not sure if it can be done through CMD or code, and I wanted someone to help me and if it could be done, can someone explain it to me?

Yes, simple using SLMGR via CMD line: slmgr /ipk *key* then: slmgr /ato to activate it.

You can use slmgr /dlv after to make sure it’s activated properly.

For “activate through code” you’d have to be more specific on which language you are wanting to try and use.

The accepted answer from TheCleaner works if you are in a GUI environment (logged in interactively), and displays a GUI dialog.

For running non-interactively (eg script, via SSH, etc):

cscript c:\windows\system32\slmgr.vbs /ipk <YOUR KEY>
cscript c:\windows\system32\slmgr.vbs /ato

When run via cscript, contents of the GUI dialog are instead displayed on the console:

PS C:\Users\Administrator> cscript c:\windows\system32\slmgr.vbs /ipk XXXXXXXX
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Installed product key XXXXXXXX successfully.

PS C:\Users\Administrator> cscript c:\windows\system32\slmgr.vbs /ato
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Activating Windows(R), ServerDatacenter edition (YYYY) ...
Product activated successfully.


Windows Server là dòng hệ điều hành máy chủ của Microsoft, được thiết kế cho môi trường doanh nghiệp nhằm quản lý mạng, lưu trữ dữ liệu, và vận hành ứng dụng với độ bảo mật, ổn định cao. Khác với Windows thông thường, nó hỗ trợ kết nối mạng không giới hạn, ảo hóa mạnh mẽ với Hyper-V, và tích hợp Active Directory. Các phiên bản hiện đại bao gồm 2019, 2022 và mới nhất là 2025. [1, 2, 3, 4, 5, 6, 7]
Các đặc điểm chính của Windows Server:
    • Quản lý hạ tầng: Hỗ trợ Active Directory, DNS, và DHCP để quản lý người dùng và tài nguyên mạng tập trung.
    • Ảo hóa (Hyper-V): Cho phép chạy nhiều máy ảo trên một máy chủ vật lý, tối ưu hóa phần cứng.
  • Bảo mật: Cung cấp các tính năng bảo mật nâng cao cho dữ liệu và kết nối.
  • Khả năng mở rộng: Phù hợp cho cả doanh nghiệp nhỏ và trung tâm dữ liệu quy mô lớn. [1, 2, 3, 4]
Các phiên bản phổ biến:
    • Windows Server 2025: Tập trung vào hạ tầng linh hoạt, bảo mật cao và cải thiện Active Directory.
    • Windows Server 2022: Phiên bản phổ biến hiện nay với các tính năng đám mây lai (hybrid).
    • Windows Server 2019: Phiên bản ổn định, phổ biến rộng rãi. [1, 2, 3]

Điểm khác biệt với Windows Desktop:
    • Số lượng kết nối: Windows Server hỗ trợ hàng nghìn kết nối đồng thời, trong khi Windows thường giới hạn.
    • Ứng dụng: Chuyên dụng cho các vai trò máy chủ (Web Server, File Server, Database) thay vì ứng dụng cá nhân. [1, 2]

Người dùng doanh nghiệp có thể tìm hiểu chi tiết và tải xuống các phiên bản mới nhất trên trang chủ Microsoft Windows Server hoặc tìm hiểu qua các đại lý phân phối.
Xem thêm: