To find your Windows product key, you can check the registry using a script, use a third-party tool like ProduKey, or check your email or receipt. First, for the registry method: open Notepad, paste the provided script, save it as productkey.vbs, and run it to display your key in a message box—note this works only on activated Windows. Second, use ProduKey from NirSoft: download the tool, run it without installation, and it will show keys for all installed Microsoft products. Third, check your email inbox, spam folder, order history on Microsoft’s website, or physical packaging if you bought a retail copy. Additionally, if upgraded from a previous version, sign into account.microsoft.com and check under “Services & subscriptions” for your key linked to your Microsoft account.
If you need to find your Windows product key—maybe for a reinstall, moving to a new drive, or just keeping a backup—it’s not always obvious where to look. The good news is there are reliable ways to retrieve it without too much hassle.

Check the Registry (Works on Activated Windows)
Windows stores your product key in the registry, but it’s encoded. You can’t just copy-paste it directly, but you can use a script or tool to decode and display it.

Here’s how:
- Open Notepad and paste the following script:
Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertFromKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Function ConvertFromKey(Key) Const KeyOffset = 52 Dim isWin8, Maps, i, j, Current, KeyOutput, LastKeyPartCount isWin8 = (Key(66) \ 6) And 1 Key(66) = (Key(66) And &HF7) Or ((isWin8 And 1) * 4) Maps = "BCDFGHJKMPQRTVWXY2346789" For i = 24 To 0 Step -1 Current = 0 For j = 14 To 0 Step -1 Current = Current * 256 Current = Key(j KeyOffset) Current Key(j KeyOffset) = Current \ 24 Current = Current Mod 24 Next KeyOutput = Mid(Maps, Current 1, 1) & KeyOutput LastKeyPartCount = LastKeyPartCount 1 If LastKeyPartCount = 5 Then LastKeyPartCount = 0 If i <> 0 Then KeyOutput = "-" & KeyOutput End If Next ConvertFromKey = KeyOutput End Function
- Save the file as
productkey.vbs
- Double-click the file – a message box will show your product key
Note: This method only works if Windows is already activated.
![]()
Use a Free Third-Party Tool
If scripting isn’t your thing, several free tools can quickly show your Windows product key. One of the more trusted options is ProduKey from NirSoft.
What to do:
- Download ProduKey from the official NirSoft website
- Run the tool (no installation needed)
- It will immediately display the product keys for all installed Microsoft products, including Windows
Warning: Always download from the official site to avoid fake versions with malware. Don’t run these tools on untrusted machines or public computers.
Look at Your Email or Receipt (For Purchased Licenses)
If you bought Windows directly—either as a digital license or boxed software—you should have received a confirmation email or receipt that includes the product key.
Check:
- Your inbox (and spam/junk folder) for emails from Microsoft or your reseller
- Order history on Microsoft’s website or wherever you made the purchase
- Physical packaging if you bought a retail copy
Tip: If you upgraded from a previous version, your new key might be linked to your Microsoft account. Sign in to account.microsoft.com and check under “Services & subscriptions.”
That’s about it. Depending on your situation—whether Windows is activated, whether you’re comfortable with scripts—you’ve got options. Some methods work better than others depending on your setup, but one of these should get you what you need.
The above is the detailed content of How to find my Windows product key?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

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

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

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)

If you're having trouble reading your desktop icons' text or simply want to personalize your desktop look, you may be looking for a way to change the font color on desktop icons in Windows 11. Unfortunately, Windows 11 doesn't offer an easy built-in

Fixed Windows 11 Google Chrome not opening Google Chrome is the most popular browser right now, but even it sometimes requires help to open on Windows. Then follow the on-screen instructions to complete the process. After completing the above steps, launch Google Chrome again to see if it works properly now. 5. Delete Chrome User Profile If you are still having problems, it may be time to delete Chrome User Profile. This will delete all your personal information, so be sure to back up all relevant data. Typically, you delete the Chrome user profile through the browser itself. But given that you can't open it, here's another way: Turn on Windo

When Windows cannot detect a second monitor, first check whether the physical connection is normal, including power supply, cable plug-in and interface compatibility, and try to replace the cable or adapter; secondly, update or reinstall the graphics card driver through the Device Manager, and roll back the driver version if necessary; then manually click "Detection" in the display settings to identify the monitor to confirm whether it is correctly identified by the system; finally check whether the monitor input source is switched to the corresponding interface, and confirm whether the graphics card output port connected to the cable is correct. Following the above steps to check in turn, most dual-screen recognition problems can usually be solved.

Have problems uploading files in Google Chrome? This may be annoying, right? Whether you are attaching documents to emails, sharing images on social media, or submitting important files for work or school, a smooth file upload process is crucial. So, it can be frustrating if your file uploads continue to fail in Chrome on Windows PC. If you're not ready to give up your favorite browser, here are some tips for fixes that can't upload files on Windows Google Chrome 1. Start with Universal Repair Before we learn about any advanced troubleshooting tips, it's best to try some of the basic solutions mentioned below. Troubleshooting Internet connection issues: Internet connection

Mini PCs have undergone

When encountering the problem of printing task stuck, clearing the print queue and restarting the PrintSpooler service is an effective solution. First, open the "Device and Printer" interface to find the corresponding printer, right-click the task and select "Cancel" to clear a single task, or click "Cancel all documents" to clear the queue at one time; if the queue is inaccessible, press Win R to enter services.msc to open the service list, find "PrintSpooler" and stop it before starting the service. If necessary, you can manually delete the residual files under the C:\Windows\System32\spool\PRINTERS path to completely solve the problem.

To display file extensions in Windows 11 File Explorer, you can follow the following steps: 1. Open any folder; 2. Click the "View" tab in the top menu bar; 3. Click the "Options" button in the upper right corner; 4. Switch to the "View" tab; 5. Uncheck "Hide extensions for known file types"; 6. Click "OK" to save settings. This setting helps identify file types, improve development efficiency, and troubleshoot problems. If you just want to view the extension temporarily, you can right-click the file and select "Rename" and press the Esc key to exit, and the system settings will not be changed.
