Your Windows 10 license key is stored in your system, but Windows hides it by default
Windows 10 keeps your license key — the 25-character code that proves you own Windows — locked away in the system registry. You cannot find it by looking at your computer's physical case or the original packaging if you bought it years ago. The key is there, but you need specific tools or commands to pull it out. Most people need this information when they are reinstalling Windows, troubleshooting activation problems, or transferring their license to a new computer.
The method you use depends on what you have access to right now. If you can still boot into Windows 10, you have the easiest options. If your system will not start, you will need a different approach. This guide covers the real tools that work, what each one shows you, and what to do when the standard methods do not turn up a key.
Key Takeaways
- Your Windows 10 license key is stored in the system registry, not printed anywhere on your computer or case.
- If Windows 10 still boots, you can retrieve your key using PowerShell, third-party tools like Belarc Advisor or ProduKey, or your Microsoft account if you bought it there.
- If your system will not start, you will need to boot from a Windows installation drive and use command-line tools to access the registry from outside the operating system.
- A digital license tied to your Microsoft account is harder to lose than a product key, because Microsoft can verify ownership without the key itself.
- If you cannot find your key and Windows is already activated, you may not need it — Windows 10 can reactivate on the same hardware without re-entering the key.
Using PowerShell to extract your license key from a working Windows 10 system
PowerShell is a command-line tool built into Windows 10. It can read the registry and display your license key in plain text. This method works only if you can log into Windows and open PowerShell.
Open PowerShell as administrator: right-click the Start button, select Windows PowerShell (Admin), and click Yes when prompted. Copy and paste this command into the window:
powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"
Press Enter. PowerShell will display your 25-character product key. Write it down or take a screenshot immediately — this is the only time you will see it this way. If nothing appears, your system may be using a digital license instead of a product key (see the section on digital licenses below).
Third-party tools that show your license key without command lines
If you do not want to use PowerShell, several free programs can read your license key and display it in a window. Belarc Advisor and ProduKey are the most reliable. Both run on Windows 10 and show your key within seconds of launching.
Download Belarc Advisor from belarc.com. Run the installer, open the program, and it will scan your system automatically. Your Windows 10 product key appears in the "Software Licenses" section. ProduKey is a single executable file — no installation needed — available from nirsoft.net. Download it, run it, and look for the Windows 10 entry in the list.
Both tools read the same registry location that PowerShell accesses, so they will show the same key. Neither requires internet access or sends data anywhere. If you are uncomfortable running command-line tools, these graphical programs are the simpler choice.
Finding your license key through your Microsoft account
If you bought Windows 10 directly from Microsoft or the Microsoft Store, your license is tied to your Microsoft account. You can view it by signing into your account on Microsoft's website.
Go to account.microsoft.com and sign in with the email address you used to buy Windows. Click Devices on the left side, then select the device that has Windows 10. Scroll down to find the section labeled Product Key or License. Microsoft will display your key there.
This method only works if you bought Windows from Microsoft directly. If you bought it from a retailer, an OEM (original equipment manufacturer like Dell or HP), or received it with a new computer, the key is not stored in your Microsoft account. In those cases, use PowerShell or a third-party tool instead.
Retrieving your key when Windows 10 will not start
If your system will not boot into Windows, you cannot use PowerShell or graphical tools. You will need to access the registry from outside the operating system using a Windows installation drive and command-line recovery tools.
Create a bootable Windows 10 installation drive on another computer using the Windows Media Creation Tool (available from microsoft.com). Insert the drive into the broken computer and boot from it. When the Windows Setup screen appears, press Shift + F10 to open Command Prompt. Type the following command to mount the registry from your Windows installation:
reg load HKLM\TEMP C:\Windows\System32\config\SOFTWARE
Then use this command to display your product key:
reg query HKLM\TEMP\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform /v BackupProductKeyDefault
The key will appear in the output. This process is technical and requires careful typing. If you make a mistake, restart the computer and try again. If you are not comfortable with command-line work, take the computer to a repair shop — they have tools that make this easier.
Understanding digital licenses versus product keys
Windows 10 uses two types of licenses. A product key is a 25-character code you enter during installation. A digital license is a record stored on Microsoft's servers that ties Windows to your hardware and Microsoft account.
If you upgraded to Windows 10 from Windows 7 or 8, or if you bought Windows 10 from the Microsoft Store, you likely have a digital license. Digital licenses do not have a visible key — there is nothing to find or write down. Microsoft knows you own Windows because your hardware and account are registered with them.
To check which type you have, open Settings, go to System, then About. Scroll down to the Windows activation section. If it says "Windows is activated with a digital license," you do not need a product key. If it says "Windows is activated with a product key," the PowerShell method or a third-party tool will show it to you.
What to do if you cannot find your license key
If PowerShell shows nothing, third-party tools find nothing, and your Microsoft account has no record of the key, you have options depending on your situation.
If Windows 10 is already activated and you are not reinstalling it, you do not need the key. Windows will stay activated as long as you do not make major hardware changes. If you are reinstalling Windows on the same computer, Windows 10 can reactivate automatically without you entering the key — Microsoft's servers will recognize your hardware.
If you are moving Windows to a different computer, you will need the original key or a new license. Contact the retailer or manufacturer you bought it from — they may have a record of your purchase and can provide the key. If you bought it years ago and have no receipt, you may need to purchase a new license.
Frequently Asked Questions
Can I use someone else's Windows 10 license key on my computer?
No. Each product key is licensed to one person or organization. Using someone else's key violates the license agreement. If you need Windows 10, you must purchase your own license or use a free alternative like Linux.
What if the PowerShell command returns nothing?
You likely have a digital license instead of a product key. Check your Windows activation status in Settings to confirm. If it says "digital license," there is no key to find — your license is tied to your Microsoft account and hardware instead.
Is it safe to share my Windows 10 product key with someone?
No. Your product key is like a password — treat it as private. Anyone with your key can activate Windows on another computer, which violates the license terms. Do not post it online or share it in forums.
Do I need my product key to reinstall Windows 10 on the same computer?
Not always. If Windows 10 is already activated on that computer, reinstalling it will reactivate automatically using Microsoft's servers. You only need the key if you are installing on a different computer or if automatic reactivation fails.
Where is the product key printed on the Windows 10 box or case?
It is not. Windows 10 does not come in a physical box for most buyers. If you bought a retail copy years ago, the key may have been on a card inside the box, but that is long gone. The key is stored only in your system registry or Microsoft account.