Windows Server 2012, 2016, 2019, and 2022 Licensing Guide 2025
If your Windows VDS/VPS provider does not include a license, you can use the official product keys and steps provided in this guide to license your server. This will help you avoid "unlicensed" warnings and ensure your system runs smoothly and without interruption.🔧 How to License Your Server
To perform the following steps, you must run Windows PowerShell as Administrator.- 🔍 Open the Start Menu and search for PowerShell.
- ⚙️ Right-click it and select "Run as administrator".
- ✅ Enter the commands below that match your system version.
🖥️ License Activation Commands
✅ Windows Server 2012 R2
Code:
DISM /online /Get-CurrentEdition
DISM /Online /Set-Edition:ServerDatacenter /ProductKey:W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9 /AcceptEula
✅ Windows Server 2016
Code:
DISM /online /Get-CurrentEdition
DISM /Online /Set-Edition:ServerDatacenter /ProductKey:CB7KF-BWN84-R7R2Y-793K2-8XDDG /AcceptEula
✅ Windows Server 2019
Code:
DISM /online /Get-CurrentEdition
DISM /Online /Set-Edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula
✅ Windows Server 2022
Code:
DISM /online /Get-CurrentEdition
DISM /Online /Set-Edition:ServerStandard /ProductKey:HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY /AcceptEula
🗝️ Product Key List
| 💿 Edition | 🔑 Product Key |
|---|---|
| Windows Server 2012 Standard | XC9B7-NBPP2-83J2H-RHMBY-92BT4 |
| Windows Server 2012 Datacenter | 48HP8-DN98B-MYWDG-T2DCC-8W83P |
| Windows Server 2012 R2 Standard | D2N9P-3P6X9-2R39C-7RTCD-MDVJX |
| Windows Server 2012 R2 Datacenter | W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9 |
| 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 2019 Standard | N69G4-B89J2-4G8F4-WWYCC-J464C |
| Windows Server 2019 Datacenter | WMDGN-G9PQG-XVVXX-R3X43-63DFG |
| Windows Server 2022 Standard | HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY |
| Windows Server 2022 Standard | RRNMT-FP29D-CHKCH-GWQP2-DDDVB |
| Windows Server 2022 Standard | 44QN4-X3R72-9X3VK-3DWD6-HFWDM |