How 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.
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
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
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.
Step 2: In command prompt window, input the removing product key: slmgr /cpky command, and then press Enter.
Step 3: When it prompts that Product key has been cleared successfully. Click on OK.
Step 4: Even if the product key is cleared, you can still view the partial product key.
To do: Execute command:slmgr /dli
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

Dell's UltraSharp 4K Thunderbolt Hub Monitor (U2725QE): An LCD That Rivals OLED For years, I've coveted OLED monitors. However, Dell's new UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) has changed my mind, exceeding expectations with its impressiv

Turn your Windows 11 PC into a Bluetooth speaker and enjoy your favorite music from your phone! This guide shows you how to easily connect your iPhone or Android device to your computer for audio playback. Step 1: Pair Your Bluetooth Device First, pa

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

The Alienware 27 4K QD-OLED (AW2725Q): A Stunning, High-Density Display The $899.99 price tag for a 27-inch monitor might seem steep, but the Alienware AW2725Q's exceptional pixel density delivers a transformative experience for both gaming and every

##### Razer Basilisk V3 Pro: High-performance wireless gaming mouse The Razer Basilisk V3 Pro is a high-performance wireless gaming mouse with high customization (11 programmable buttons, Chroma RGB) and versatile connectivity. It has excellent sensors, durable switches and extra long battery life. If you are a gamer looking for a high-quality wireless mouse and need excellent customization options, now is a great time to buy the Razer Basilisk V3 Pro. The promotion cuts prices by 39% and has limited promotion periods. This mouse is larger, 5.11 inches long and 2 inches wide
