Product Key - Clear from Registry in Windows

    Product Key - Clear from Registry in Windows

    How to Clear Product Key from Registry in Windows
    Published by Brink
    04 Jan 2016

    Published by

    Brink's Avatar

    Posts: 12,127

    Show Printable Version 

    How to Clear Product Key from Registry in Windows

    information   Information
    When you install and activate a retail copy of Windows, the product key is stored in the registry. This can be helpful to be able to use a program like ShowKeyPlus to view your installed product key if lost.

    However, having your installed product key in the registry could leave it vulnerable to being stolen from disclosure attacks by malicious software. Clearing the product key from the registry will prevent this, but you will need to make sure to keep a copy of your product key written down and kept in a secure location.

    This tutorial will show you how to permanently clear the product key from the registry to prevent it from being stolen in Vista, Windows 7, Windows 8, and Windows 10.

    You must be signed in as an administrator to be able to clear the product key from the registry.

    Note   Note
    This will not remove an OEM Windows 8/8.1/10 product key embedded in the UEFI firmware chip.

    If you run the slmgr /dli command in a command prompt, you will still be able to see the last 5 characters of the installed product key to help let you know what key you used to activate Windows with.

    Name:  slmgr_dli.png
Views: 1667
Size:  34.5 KB

    Here's How:

    1. Open an elevated command prompt.

    2. Copy and paste the command below into the elevated command prompt, and press Enter. (see screenshot below)

    slmgr /cpky

    Name:  Clear_product_key_from_registry-1.png
Views: 1658
Size:  10.6 KB

    3. Click/tap on OK when the product key has successfully been cleared from the registry. (see screenshot below)

    Name:  Clear_product_key_from_registry-2.png
Views: 1654
Size:  4.6 KB

    That's it,

  1.    04 Jan 2016 #1

    Hmmm... Shawn, makes me wonder... whether I should include an encryption function on the keys in the registry, that can only be decrypted with ShowKeyPlus?
      My System SpecsSystem Spec

  2.    04 Jan 2016 #2
    Join Date : Oct 2013
    Posts : 12,127
    64-bit Windows 10 Pro build 14352

    That would be a good idea to have that included.

      My System SpecsSystem Spec


Similar Threads
Tutorial Category
File Explorer History - Clear in Windows 10
How to Clear File Explorer History in Windows 10 Clearing File Explorer history deletes the information Windows saved about the files and folders you use as well as what you've typed in the address bar. This tutorial will show you how to...
Solved How do you clear the Reliability History in Windows 10?
I would like to clear my Reliability history after doing some program testing that generated a lot of errors. I cleared out all of the Event logs, but a number of errors are still showing in the Reliability history. There was a tutorial in the...
Performance & Maintenance
Thumbnail Cache - Clear and Reset in Windows 10
How to Clear and Reset the Thumbnail Cache in Windows 10 Windows keeps a copy of all your folder, picture, video, and document thumbnails in a cache so they can be displayed quickly when you open a folder instead of having to manually scan and...
Solved How clear windows update hisotry
Hi guys i was wondering if you can clear your windows update history like windows 8 or 7 in 10?
Windows Updates and Activation
Our Sites
  • Vista Forums
  • Eight Forums
  • Seven Forums
  • PC Help Forum
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • Terms of service
  • About Us
    Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 10:15.
    Find Us
    Twitter Facebook Google+

    Windows 10 Forums