Activate and upgrade Windows Server online using command line commands

You have the product key and perhaps an evaluation Windows Server waiting to be activated or even upgraded maybe from Essentials to something else? Here is how.

Open command line in administrator mode and give command:

dism.exe /online /get-targeteditions

Now check your upgrade path and find a product key matching the selected edition.

Again in command prompt we can activate / upgrade the edition online with this command:

dism.exe /online /set-edition:ServerStandard /productkey:<KEY> /accepteula

This should result in something like this:

And that's it. Comment below once they are enabled ;)

All comments and corrections are welcome.

  • tips_and_howtos/upgrade_windows_server.txt
  • Last modified: 2021/12/31 08:24
  • by