sodcalculator

10 Tech How-To

How to Uninstall a Product Key in Windows 10

Guide 10-10025 · Updated · Step by step

Removing a product key from Windows 10 is useful when you want to transfer a license to another computer, stop using a volume license key, or simply clean up the activation data on a machine you are about to retire. This guide walks you through the two reliable methods: using the Command Prompt to delete the key from the registry, and using the Settings app to clear the activation state. You will need administrator access to the PC, and you should back up any important data before making system-level changes.

What You’ll Need

  • An account with administrator privileges on the Windows 10 PC.
  • A backup of any important files (optional but recommended before registry edits).
  • Your original product key or a note of where to find it, in case you need to reactivate later.

Step-by-Step

There are two main ways to uninstall a product key in Windows 10. The first uses the Command Prompt and completely removes the key from the system. The second uses the Settings app and clears the activation state without fully deleting the key from the registry.

Method 1: Using Command Prompt (Complete Removal)

  1. Click the Start button and type cmd.
  2. Right-click Command Prompt in the search results and select Run as administrator. Click Yes if the User Account Control prompt appears.
  3. In the Command Prompt window, type the following command and press Enter:
    slmgr /upk
  4. Wait for the message that says “Product key uninstalled successfully.� This command removes the product key from the Windows registry, so it will no longer be used for activation.
  5. To clear the activation state and ensure the system is no longer activated, type this command and press Enter:
    slmgr /cpky
  6. Wait for the confirmation message. This command clears the product key from the registry, preventing it from being read by other tools.
  7. Close the Command Prompt window.

Method 2: Using Settings (Clear Activation State)

  1. Press Windows key + I to open Settings.
  2. Click Update & Security.
  3. In the left sidebar, click Activation.
  4. Under the “Windows� section, click the Troubleshoot link.
  5. In the troubleshooter, click I changed hardware on this device recently.
  6. Sign in with your Microsoft account if prompted.
  7. Click Activate – this will not actually activate, but it forces Windows to check the license state.
  8. After the check, go back to the Activation page. If the system is not activated, you will see a message saying “Windows is not activated.� This indicates the key is no longer in use for this device.

Note: Method 2 does not physically delete the key from the registry; it only clears the activation status. If you want a clean removal, use Method 1.

Common Mistakes

  • Running Command Prompt without admin rights: The slmgr commands require elevated privileges. If you get an error like “Access denied,â€� close the window and rerun as administrator.
  • Typing the command incorrectly: A common typo is slmgr /upk vs slmgr /upk – make sure there is a space before the slash. Also, use /upk (uninstall product key) and /cpky (clear product key) – mixing them up will not give the desired result.
  • Skipping the /cpky step: Running only /upk removes the key from the activation store but leaves it in the registry where some third-party tools can still read it. Run both commands for a complete removal.
  • Assuming the key is gone permanently: If Windows is connected to a Microsoft account, the digital license may be stored in the account. Uninstalling the key does not delete the license from your account; it only affects the local machine.

Tips

  • Before uninstalling, write down your product key or ensure you have access to your Microsoft account. You will need it to reactivate Windows on this or another PC.
  • If you are transferring the license to a new computer, uninstall the key first, then install Windows on the new machine and enter the key there.
  • Use the slmgr /dli command to check the current license status before and after removal. It shows whether the system is activated and which key (or digital license) is in use.
  • If you are selling or giving away the PC, also perform a full reset (Settings → Update & Security → Recovery → Reset this PC) after removing the key to wipe all personal data.

Troubleshooting

If the commands do not work as expected, here are common issues and fixes.

  • “Error: 0x80070005 Access is denied.â€� – This means the Command Prompt is not running as administrator. Close it, right-click the Command Prompt icon, and select “Run as administrator.â€�
  • “Error: 0xC004F012â€� or similar activation errors after removal. – This is normal if you removed the key and Windows is now unactivated. To restore, re-enter the key via Settings → Update & Security → Activation → Change product key.
  • The slmgr command is not recognized. – This usually means you are not in the correct environment. slmgr is a Windows script, not a standalone executable. It should work in any Command Prompt on Windows 10. If it fails, try opening PowerShell as administrator and running the same command.
  • After removal, Windows still shows “Activated.â€� – This can happen if the system uses a digital license tied to your Microsoft account. To fully deactivate, sign out of the Microsoft account on the PC (Settings → Accounts → Your info → Sign out) after removing the key.
  • The Settings method does not show the Troubleshoot link. – This link only appears when Windows is not activated. If it is missing, your system is already activated, so use Method 1 instead.

Frequently Asked Questions

Q: Will uninstalling the product key delete my files?
A: No. Removing the product key only affects the activation status. Your documents, photos, and installed programs remain untouched.

Q: Can I reinstall the same key later?
A: Yes. You can re-enter the same product key at any time through Settings → Update & Security → Activation → Change product key. As long as the key is valid and not in use on another PC, it will work.

Q: What is the difference between /upk and /cpky?
A: /upk uninstalls the product key from the activation store, which stops Windows from using it. /cpky clears the product key from the registry, so tools that read the registry cannot find it. Running both gives a clean removal.

Q: Do I need to uninstall the key before changing the motherboard?
A: Not necessarily. If you have a digital license tied to your Microsoft account, you can use the Activation Troubleshooter after the hardware change. If you have a retail key, you may need to remove it first and then re-enter it on the new hardware.

Q: Can I uninstall a product key from a volume license (KMS) installation?
A: Yes, the same commands work. However, if the system is configured to use a KMS server, it may re-activate automatically after the key is removed. To prevent this, you may need to disable the KMS client or disconnect from the network temporarily.

Q: Will Windows become unusable after uninstalling the key?
A: No. Windows will continue to run normally, but it will show a “Windows is not activated� watermark in the corner of the screen and disable some personalization settings. You can still use all programs and features.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →