This guide shows you how to locate the product key for your installed Windows operating system and for common software applications. You will learn several methods, from built-in Windows tools to third-party utilities, and what to do when the key is not where you expect it. No prior technical experience is needed, but you should be logged in as an administrator for some steps.
What You’ll Need
- A PC running Windows 10 or Windows 11 (the steps also work on older versions with minor differences)
- Administrator access to your user account
- Internet connection (only if you choose to download a third-party tool)
- Pen and paper or a text file to save the keys you find
Step-by-Step
Find Your Windows Product Key
- Open Command Prompt as Administrator. Click the Start button, type
cmd, right-click “Command Prompt” in the results, and select “Run as administrator.” Confirm the User Account Control prompt if it appears. - Run the Windows key retrieval command. Type or paste the following command and press Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
This command works on most OEM and retail installations. If a key is present, it appears on the next line. - If that returns nothing, try the registry method. In the same Command Prompt window, type:
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v DigitalProductId
This shows a long hexadecimal string. That string is encoded, so you cannot read the key directly. You will need a decoding script or a third-party tool to convert it. - Use PowerShell for a more readable result. Open PowerShell as Administrator (Start, type
powershell, right-click, “Run as administrator”). Run this script to decode the registry value:function Get-WindowsKey { $path = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion"; $value = (Get-ItemProperty $path).DigitalProductId; $key = $value[52..66]; $chars = "BCDFGHJKMPQRTVWXY2346789"; $result = ""; for ($i = 24; $i -ge 0; $i--) { $r = 0; for ($j = 14; $j -ge 0; $j--) { $r = $r * 256 -bxor $key[$j]; $key[$j] = [math]::Floor($r / 24); $r = $r % 24 }; $result = $chars[$r] + $result }; $result }
Then typeGet-WindowsKeyand press Enter. The 25-character key appears. - Check your Microsoft account (for digital licenses). If your Windows was activated with a digital license linked to a Microsoft account, go to
Settings > Accounts > Your infoand look for “Windows is activated with a digital license linked to your Microsoft account.” The key itself is not stored there, but you can re-activate after a hardware change by signing in.
Find Product Keys for Installed Software
- Check the software’s own settings. Many programs display their license key inside the app. Look for “Help,” “About,” “Account,” or “License” menus. For example, Microsoft Office shows it under
File > Account > Product Information. - Look in the Windows Registry. Most applications store their key in the registry. Open
regedit(Start, typeregedit, press Enter) and search for the software name usingCtrl+F. The key is often underHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallorHKEY_CURRENT_USER\Software. Look for values namedProductKey,SerialNumber, orInstallCode. - Use a dedicated key finder tool. Free utilities like ProduKey or Magical Jelly Bean Keyfinder scan the registry and display keys for Windows, Office, and many other programs. Download one from a reputable source, run it, and it lists all detected keys in a table. Save the output as a text file.
- Check your email or retailer account. If you bought the software online, search your inbox for the order confirmation or license email. Retailers like Amazon or Newegg keep a “Your Games & Software Library” section where keys are stored.
- Look for a physical label or card. Retail boxed software often includes a sticker on the case or a card inside. Laptops and pre-built desktops from major brands usually have a Windows key sticker on the bottom or under the battery (on older models).
Common Mistakes
- Confusing the Windows key with the Office key. They are separate. A Windows key does not activate Office and vice versa.
- Using the wrong command. The
wmiccommand only works on Windows 8 and later. On Windows 7, it may return nothing. - Assuming the key in the registry is plain text. The DigitalProductId value is encoded. Copying it directly will not give you a usable key.
- Forgetting to run as administrator. Without admin rights, commands and registry reads may fail or show incomplete data.
- Trusting sketchy “key generator” websites. These are scams or malware. Only use trusted tools or official channels.
Tips
- Back up your keys. Save all found keys in a password manager or a printed document stored somewhere safe.
- Use a single tool for everything. ProduKey and similar tools show Windows and many third-party apps in one list, saving time.
- Check the BIOS for OEM keys. On many modern laptops, the Windows key is embedded in the firmware. The
wmiccommand reads it directly; you do not need a sticker. - If you have a digital license, you may not need the key at all. Signing in with the same Microsoft account re-activates Windows automatically.
- Be careful with third-party downloads. Only download from the official developer site or a well-known software repository like MajorGeeks or Ninite.
Troubleshooting
- The
wmiccommand returns “No Instance(s) Available.” This means the key is not stored in the firmware or the registry location is different. Try the PowerShell script or a third-party tool. - PowerShell script gives an error. Make sure you copied the entire function correctly. Check for missing semicolons or parentheses. Alternatively, use a pre-made script from a trusted site.
- Third-party tool shows no keys. Run it as administrator. If it still shows nothing, the software may store its key in a non-standard location or use online activation (no local key).
- You cannot find the key for a subscription-based app. Subscription software like Adobe Creative Cloud or Microsoft 365 does not use a traditional product key. Your license is tied to your account login.
- The key you found is invalid when you try to reinstall. This can happen if the key is a volume license key (VLK) or an OEM key that is not transferable. Contact the software vendor for support.
Frequently Asked Questions
Q: Is it legal to use a third-party key finder?
A: Yes, for retrieving keys for software you own. It is not legal to use them to steal keys or activate pirated software.
Q: Can I use the found Windows key on a different computer?
A: Only if it is a retail key. OEM keys (pre-installed on laptops) are tied to the original hardware and usually cannot be transferred.
Q: What if I lost the sticker on my laptop?
A: Use the wmic command or a key finder. Most modern laptops have the key in the firmware, so the sticker is not needed.
Q: Does the product key expire?
A: No, product keys do not expire. However, activation servers may be retired for very old versions of Windows, making activation impossible.
Q: Why does my software not have a product key at all?
A: Many modern apps use account-based licensing or subscription models. Check if you can sign in instead of entering a key.
Q: Can I retrieve a key for software I installed years ago?
A: Yes, if the software is still installed and the key is stored in the registry. If you have uninstalled it, the key may be gone unless you saved it.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Text Cursor Turning White in Windows 11
- Force Quit Non-Responding Apps on Mac: 6 Ways
- Chromebook Not Charging? Fix It Fast
- iPhone Won’t Make Calls but Texts Work? Fixes
- Android to iPhone Hotspot: Connect & Fix Issues
- Fix Bluetooth Not Working on Discord Mobile