How to upgrade Windows 10 Home to Pro using CMD

To upgrade Windows 10 Home to Pro from the command line, open Command Prompt as administrator and run changepk.exe /ProductKey followed by a genuine Windows 10 Pro product key. Windows switches the edition, restarts and comes back as Windows 10 Pro with your files and apps where you left them. The command doesn’t create a license, though: without a valid Pro key, or a Pro digital license already tied to the PC, there is no legitimate way to activate Pro.

What you gain is BitLocker, Remote Desktop hosting, Hyper-V, the Group Policy Editor and domain join. The full list is in our Windows 10 Home vs Windows 10 Pro comparison.

Before you start

You need four things:

  • A Windows 10 Pro product key. A Home key won’t do it, and keys for other editions (Education, Enterprise) either fail or take you somewhere you didn’t mean to go.
  • An administrator account on the PC.
  • An internet connection, so the key can activate straight after the edition switch.
  • Confirmation of your current edition. Open Command Prompt as administrator and run:
DISM /Online /Get-CurrentEdition

Windows 10 Home reports Current Edition : Core. Home Single Language reports CoreSingleLanguage, and it upgrades to Pro the same way. If you see Professional, you already have Pro and only need to activate it.

To see which editions your installation can move to, run:

DISM /Online /Get-TargetEditions

If Professional is in the list, a Pro key will work. Not sure whether your current license is retail, OEM or volume? Check your Windows license type first. It matters if you plan to move the license to another PC later.

Upgrade Windows 10 Home to Pro with changepk

  1. Click Start, type cmd, right-click Command Prompt and choose Run as administrator. Click Yes in the User Account Control prompt.
  2. Save open work. The PC restarts on its own during the upgrade.
  3. Run the command with your own key in place of the Xs:
changepk.exe /ProductKey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  1. Windows shows an edition upgrade screen with progress. Let it finish. The PC restarts, sometimes twice. Don’t switch it off.
  2. Sign in again and check the result (next section).

PowerShell works too. Right-click Start, choose Windows PowerShell (Admin) and type the same changepk.exe line. On Windows 11 the menu item is Terminal (Admin). The command is identical in both shells.

The graphical route does the same job. Go to Settings → Update & Security → Activation → Change product key, paste the Pro key and confirm. Use the command line when the Settings page throws an error, or when you’re working on a PC remotely.

Check that the upgrade and activation worked

In an elevated Command Prompt, confirm the edition:

DISM /Online /Get-CurrentEdition

It should now report Current Edition : Professional. Next, check activation:

slmgr /xpr

A small window should say The machine is permanently activated. For more detail, slmgr /dli shows the license name (it includes Professional edition) and License Status: Licensed.

If the edition is Pro but activation hasn’t gone through yet, for example because the PC was offline during the restart, start it by hand:

slmgr /ato

You can also confirm it in Settings → Update & Security → Activation: the Edition line should read Windows 10 Pro, and the Activation line should say Windows is activated.

Why slmgr and DISM /Set-Edition don’t do the upgrade

These two commands come up in almost every search for a command-line upgrade, and neither one switches a running Windows 10 Home installation to Pro:

  • slmgr /ipk installs a key for the edition that is already installed. On Home, a Pro key gets rejected with an error instead of starting an upgrade. slmgr is useful after the switch, to activate and check status, but not for the switch itself.
  • DISM /Online /Set-Edition is meant for offline images and Windows Server. On a running Windows 10 desktop it stops with a message that setting an edition isn’t supported on online images.

On Windows 10 and Windows 11, changepk.exe and the Change product key button in Settings are the supported ways to change edition in place.

“Free” upgrades, generic keys and GitHub scripts

Many searches for this topic add “free”, “generic key” or “github”. The honest answer:

  • Microsoft doesn’t offer a free Home-to-Pro upgrade. The free upgrade Microsoft does offer is Windows 10 to Windows 11 within the same edition: Home goes to Home, Pro goes to Pro.
  • Generic (default) keys only switch the edition. Microsoft’s installation keys move Home to Pro, but Pro stays unactivated. You get the “Activate Windows” watermark and locked personalization settings until you enter a real Pro key. If you have a real key, run it through changepk directly and skip the extra step.
  • “Free Pro” scripts on GitHub aren’t a license. They point Windows at an unofficial KMS server or tamper with licensing files. That breaks the Microsoft Software License Terms, updates can undo it, and running an unknown script with administrator rights puts the whole PC at risk. Avoid them.
  • The one real exception is an existing digital license. If this PC ran an activated Windows 10 Pro before (say you reinstalled Home by mistake), Microsoft’s activation servers still hold a Pro digital license for that hardware. Once the PC is back on Pro, it activates on its own when online. If it doesn’t, run Troubleshoot on the Activation page.

Going from Windows 10 Home to Windows 11 Pro

Windows 10 support ended on 14 October 2025. Moving to Pro doesn’t change that, so if your PC meets the Windows 11 requirements, it makes sense to end up on Windows 11 Pro. Either order works:

  1. Pro first, then Windows 11. Upgrade Home to Pro with the steps above, then upgrade to Windows 11 through Windows Update or Microsoft’s Installation Assistant. The edition and activation carry over, so Windows 10 Pro becomes Windows 11 Pro.
  2. Windows 11 first, then Pro. Take the free upgrade to Windows 11 Home, then enter a Pro key in Settings → System → Activation → Change product key. The same changepk.exe /ProductKey command works on Windows 11.

Either way the key isn’t wasted: a Windows 10 Pro key also activates Windows 11 Pro.

If it still doesn’t work

  • changepk closes and nothing happens. Make sure the window title says Administrator. Then check that the two services the upgrade depends on can start:
net start wuauserv
net start LicenseManager

If either one reports that the service is disabled, open services.msc, set Windows Update or Windows License Manager Service back to Manual, and run changepk again.

  • The key is rejected. 0xC004F050 means the key is invalid, usually because of a typo or because it isn’t a Pro key. 0xC004E016 means the key doesn’t match the edition Windows expects.
  • The key is blocked. 0xC004C003 means Microsoft has blocked the key, which often happens with keys that leaked or were resold outside their intended channel. Contact the seller for a replacement.
  • Any other code. Look it up in our activation error library, which has step-by-step fixes for each one.

FAQ

Can I upgrade Windows 10 Home to Pro for free with CMD?

No. The command only switches the edition. Activation still needs a genuine Windows 10 Pro key, or a Pro digital license that this PC already has. Generic keys change the edition but leave Windows unactivated.

Will upgrading from Home to Pro delete my files?

No. The edition upgrade keeps your files, apps and settings, and nothing is reinstalled. A backup before any system change is still a good habit.

Why does slmgr /ipk fail with a Pro key on Windows 10 Home?

slmgr installs a key for the edition that is already installed; it cannot switch editions. Use changepk.exe /ProductKey for the upgrade, then check activation with slmgr /xpr.

Can I go from Windows 10 Home straight to Windows 11 Pro?

Not in one step. Upgrade to Windows 10 Pro first and then to Windows 11, or move to Windows 11 Home and then enter a Pro key. A Windows 10 Pro key also activates Windows 11 Pro.

Still stuck? Write to support@keytory.com — we reply within a few hours.

Next guideWindows 11 Pro generic activation key: does it work?
Contents