- 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!- Phần 2: Kích hoạt KMS
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.
-
- 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]



































