Friday, 21 November 2025

Windows server 2019 command

 


How to use the keys
You can use the keys to activate Windows Server 2019 through the command prompt (as an administrator) or PowerShell. 
Using Command Prompt (slmgr.vbs) 
  1. Open Command Prompt as an administrator.
  2. Enter the following command to install the product key: 
cscript //nologo %windir%\system32\slmgr.vbs /ipk <Your-Product-Key> 
  1. To activate, use a KMS server address (if your organization has one) or a public one, then run:
cscript //nologo %windir%\system32\slmgr.vbs /skms kms.msgang.com cscript //nologo %windir%\system32\slmgr.vbs /ato 
Using DISM
  1. Open Command Prompt or PowerShell as an administrator. 
  2. Use the following command to convert an evaluation edition to a full edition: 
dism /online /set-edition:ServerStandard /productkey:N69G4-B89J2-4G8F4-WWYCC-J464C /accepteula 
Note: This method is primarily for activating with a KMS server. If you do not have a KMS server, you may need to use a different activation method or purchase a valid license.