search
HomeSystem TutorialWindows SeriesHow to Remove Windows 10 Product Key from Registry

When Windows 10 installed on your computer, it stored its product key in the registry. But this could leave it vulnerable to being stolen from disclosure attacks by malicious software. Remove the product key from the registry will prevent your product key from being stolen. Before you do this action, it's imperative to back up your product key in a secure location, in case you forgot or lost it. This article will show you how to do.


  • Part 1: Find Windows 10 product key
  • Part 2: Remove Windows 10 Product Key

How to Find Product Key using Notepad in Windows 10

To view the Windows Product Key, you can use a Visual Basic (VB) script that retrieves the key from the registry. The following steps will show you how to create such a script.

Step 1: Create a new Text Document on your computer.

Right-click on the blank area in Desktop or File Explorer, select New > Text Document.

How to Remove Windows 10 Product Key from Registry

Step 2: Then copy and paste in the following bit of code into a Notepad.

Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

How to Remove Windows 10 Product Key from Registry

Step 3: Now save the file using the extension .vbs (instead of .txt).

Step 4: To run the script, double-click on the .vbs file. You'll see a popup window with your product key. Hit CTRL + C if you'd like to copy the key.

How to Remove Windows 10 Product Key from Registry

How to Remove Windows 10 Product Key from Registry

To remove the product key from the registry to prevent it from being stolen. Here's how:

Step 1: Open Command Prompt as administrator.

To do: Press Win+X, A in the keyboard. Command Prompt (Admin) window will pop up.

How to Remove Windows 10 Product Key from Registry

Step 2: In command prompt window, input the removing product key: slmgr /cpky command, and then press Enter.

How to Remove Windows 10 Product Key from Registry

Step 3: When it prompts that Product key has been cleared successfully. Click on OK.

How to Remove Windows 10 Product Key from Registry

Step 4: Even if the product key is cleared, you can still view the partial product key.

To do: Execute command:slmgr /dli

How to Remove Windows 10 Product Key from Registry

Look how it displays the partial product key, this information is enough to identify which product key was used for this installation. If you lost the product key, you can recover the product key easily via the Product Key Finder.

The above is the detailed content of How to Remove Windows 10 Product Key from Registry. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
8 Ways to Clear the Clipboard on Windows 118 Ways to Clear the Clipboard on Windows 11Apr 21, 2025 pm 12:13 PM

This guide provides multiple ways to clear your Windows 11 clipboard, ensuring your copied data remains private. Your clipboard stores various items, including text, images, and videos. Let's explore several methods to erase its contents. Method 1:

Logitech's G515 Lightspeed keyboard is 25% offLogitech's G515 Lightspeed keyboard is 25% offApr 21, 2025 pm 12:06 PM

Logitech G515 Lightspeed TKL Mechanical Gaming Keyboard Review The Logitech G515 Lightspeed TKL uses low profile keys and feels very similar to the Apple Magic Keyboard, but has an additional mechanical switch, which is slim overall and has a rechargeable battery. Amazon Link This keyboard is perfect for users who both work and games. Amazon currently sells for $119.99, down from its original price of $159.99, only once before it reached this price. G515 Lightspeed TKL is slim in size, 14.49 inches long and 5.91 inches wide,

How to Enable TPM 2.0 to Get Windows 11How to Enable TPM 2.0 to Get Windows 11Apr 21, 2025 am 11:17 AM

Many users with powerful desktops were initially blocked from upgrading to Windows 11 due to a simple BIOS setting being disabled by default: TPM 2.0. This guide explains how to enable it. Checking for TPM Compatibility Windows has a built-in tool t

How to Download a Website as an App on the DesktopHow to Download a Website as an App on the DesktopApr 21, 2025 am 10:37 AM

Quickly Access Your Favorite Websites: Two Methods for Adding Websites to Your Desktop Tired of hunting through bookmarks? Windows offers easy ways to add frequently visited websites directly to your desktop for instant access. This guide details tw

8 Ways to Open the Run Dialog Box on Windows 118 Ways to Open the Run Dialog Box on Windows 11Apr 20, 2025 am 06:01 AM

Windows 11's Run dialog box (Run) provides a convenient way to quickly access various system features and installed applications. The way to start this dialog is simple, just use keyboard shortcuts or select menu items. This article will describe several ways to start this utility. Use keyboard shortcuts to open the run dialog The quickest way to start a Run dialog on Windows 11 is to use keyboard shortcuts. This method opens the dialog box instantly. To do this, press the Windows R key on the keyboard. No matter where you are currently on your computer, Windows 11 will immediately open the Run dialog box. You can then enter the name of the utility you want to start.

Samsung's 32-inch Odyssey G7 IPS Gaming Monitor Is $270 Off TodaySamsung's 32-inch Odyssey G7 IPS Gaming Monitor Is $270 Off TodayApr 20, 2025 am 03:01 AM

Samsung Odyssey G7 (G70D) 32-inch Esports Monitor Special Offer! Original price is $800, current price is only $530, saving $270! This Odyssey G7 sports monitor has 4K resolution, IPS panel, 144Hz refresh rate, AMD FreeSync Premium support, and smart Tizen capabilities. Samsung's official website priced at $530 If you need a monitor that supports high refresh rate gaming, this Samsung 32-inch Odyssey G7 monitor is ideal for you. Currently on sale, priced at $530, $270 less than the original price, and comes with 4K resolution, IPS panel and smart software capabilities. 32-inch Odyss

6 Tasks You Should Do Regularly on Your Windows Computer6 Tasks You Should Do Regularly on Your Windows ComputerApr 19, 2025 am 03:01 AM

Maintaining a Windows computer requires regular upkeep to ensure smooth operation and prevent performance issues, security risks, and unnoticed hardware problems. Here's a routine maintenance checklist to keep your computer running smoothly: 1. Run

How to Right-Click With No MouseHow to Right-Click With No MouseApr 18, 2025 pm 12:03 PM

The mouse is a vital component to getting work done on your PC. But when you’re stuck with a faulty mouse, you can run into a few problems including the inability to right-click. But the good news is that there are definitely ways t

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor