How To Activate Windows from Command Prompt

  • Post author:
  • Post category:Microsoft

Run the following command to activate Windows via command line.

This is helpful when activating Windows Server 2019 because it errors out when attempting to activate via GUI on the current build of 2019.

cscript c:\windows\system32\slmgr.vbs /ipk XXXX-XXXXX-XXXXX-XXXXX-XXXXX


Jason works as a project specialist at an IT MSP in Pennsylvania, USA. He's an IT/security professional with 20 years experience.