Control Panel doesn't have a button to disable a Windows product key. To uninstall the installed Windows key, run slmgr /upk in an administrator Command Prompt, then restart Windows.
That removes the key from this Windows installation. It doesn't erase your files, wipe the PC for sale, or decide whether the license can move to another computer. Windows may also have a digital license, which needs a separate check.
In this guide
Check what you want to remove before using a command
Use key removal when you want to uninstall the key from the Windows edition you're running. If the goal is replacing it, use Change product key in Activation settings instead. That route lets you enter the replacement directly.
If the goal is selling or giving away the computer, key removal keeps personal files on the drive. Follow a proper reset or clean-install process for the data. Key removal and preparing a PC for another owner are different jobs.

Record the current edition and activation status before proceeding. On Windows 11, open Settings > System > Activation. On Windows 10, use Settings > Update & Security > Activation.
Read whether Windows uses a digital license and whether that license is linked to a Microsoft account. A digital license can activate Windows without you entering a product key, which matters when checking what changed after removal.
Find the purchase record and any separately supplied key before uninstalling it. The Windows key retrieval checks distinguish a real product key from the Product ID displayed in system information.
I'd check the receipt before running a removal command for a license transfer. A key installed on a computer doesn't tell you whether the license terms permit using it on another machine.
Open an administrator Command Prompt
Open Start, type Command Prompt, then choose Run as administrator for the result. Accept the Windows permission prompt or provide an administrator's credentials if this account isn't an administrator.
Check that the window title identifies the administrator session. A normal command window can show some license information. To uninstall the key, you need an administrator window, also called an elevated window.
On an organization's PC, have its administrator handle the license change. A volume-licensed device can depend on the organization's activation system, so removing its key without the administrator's help can disrupt activation.
These commands change Windows licensing. They don't uninstall Microsoft Office or remove a Microsoft 365 subscription. For an Office message, check which product is reporting the error before applying a Windows command.
Uninstall the installed Windows key
In the administrator Command Prompt, type this command and press Enter:
slmgr /upk
Wait for the Windows Script Host result dialog. Read whether the operation succeeded before closing it. If you get a permission or licensing error, write down the exact message. Repeating the command won't fix a denied request.
Microsoft says /upk uninstalls the current edition's product key. The command reference also specifies an unlicensed state after restarting unless a new key is installed.
Save open work and choose Start > Power > Restart. After signing back in, return to Activation settings and read the current status. Use that screen to check whether Windows stays unlicensed after the restart.
Removing the installed key doesn't remove every way this PC can activate. A digital license or your organization's activation system can affect what happens afterward.
If the PC activates again, note the exact activation wording and license type. Treat that as an activation question for the license owner or Microsoft Support rather than repeatedly uninstalling the key or deleting licensing files.
Clear the stored registry copy when needed
The related /cpky option removes the product key from the registry. Its purpose differs from /upk, and running it alone isn't a replacement for uninstalling the installed key.
Keep Command Prompt elevated when running this option:
slmgr /cpky

The registry is Windows' settings database. This option removes a stored key copy when one is present, helping prevent software from reading it. It doesn't erase every license record or digital license tied to the hardware.
Read the result dialog. Some key types already clear that stored copy automatically. If yours does, you don't need an extra command to clear it again. Don't manually edit registry entries to imitate the command.
Neither command changes the license agreement. Keep the proof of purchase and the license terms for a transfer decision. Removing a key from the first PC doesn't automatically grant permission to use it on a second one.
Change a key or transfer an eligible license instead
To install a replacement through Windows 11, open Settings > System > Activation and choose Change beside Change product key. On Windows 10, open Settings > Update & Security > Activation > Change product key.
Enter the replacement key and follow the activation prompts. The installed Windows edition must match the license. A key for a different edition isn't fixed by repeatedly removing the current key.
For a move to another computer, check the Windows license transfer rules first. A retail purchase and a license supplied with a PC can have different transfer rights.
Keep the activation guidance available if the replacement fails. Write down the error code, current edition, and purchase type before asking for help.
When removal or reactivation doesn't behave as expected
For a failed command, send Microsoft Support the Script Host message, Windows edition, and whether Command Prompt was running as administrator. For unexpected reactivation, include the Activation wording and license purchase record.
Use Get Help to request Windows activation support. Ask whether this copy has a digital license, a product key, or organization-managed activation, and what you need to do for the transfer or replacement you have in mind.
The Short Version
Control Panel can't remove the Windows key. Run slmgr /upk as administrator, restart, and check Activation. The /cpky option clears a stored registry key copy. Neither wipes personal files or grants transfer rights.
Checked December 2, 2026.







