Where your Windows product key lives depends on how you got Windows: on a sticker or card from the PC or box, in a purchase confirmation email or a retailer’s digital locker, in the Order history of your Microsoft account, or inside the PC’s firmware where the manufacturer stored it. Before you search, open Settings > System > Activation: if it says Windows is activated with a digital license, there is no key to find, and reinstalling the same edition activates on its own.
This covers Windows 11 Home and Pro, with the menu names Windows 11 uses. Microsoft’s key locations are the same for Windows 10, which reached end of support on October 14, 2025.
Product key, digital license and the numbers that look like a key
A product key is a 25-character code written as five groups of five, like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. A digital license (Windows 11 also calls it a digital entitlement) is a way of activating that does not use a typed key at all. Microsoft’s Find your Windows product key page says a PC needs one or the other to activate.

Several other numbers on a PC look similar, and support agents or forms sometimes ask for the wrong one:
| Number | Where you see it | Is it your product key? |
|---|---|---|
| Product key | Sticker, box card, email, firmware | Yes, the 25-character activation code |
| Product ID | Settings > System > About | No. Microsoft notes it is not unique to the key you use |
| Serial number | Label on the PC, firmware | No. It identifies the hardware for the PC maker |
| Last five characters | PowerShell or slmgr /dli (below) |
Part of the installed key, useful for matching |
If someone is asking for the hardware serial number instead, this walkthrough on finding your computer’s serial number in Windows 11 shows the Settings and PowerShell routes.
Check your activation first
Many people search for a key they will never need to type. A two-minute check tells you which situation you are in.
- Click Start and open Settings.
- Select System in the left pane.
- Select Activation. The Activation page opens.
- Read the activation message on that page and compare it with the table below.

Microsoft’s Activate Windows page lists the four messages you can get:
| Message | What it tells you | Next step |
|---|---|---|
| Windows is activated with a digital license linked to your Microsoft account | No key needed; the license is backed up to your account | Nothing to find |
| Windows is activated with a digital license | No key needed, but the license is not linked to an account | Select Add an account and sign in |
| Windows is activated | A product key activated this PC | Find and save that key using the table below |
| Windows is not activated | No valid license or key was found | Look for a key you bought, or see the last section |
Linking a Microsoft account matters more than saving a key on a PC with a digital license. Microsoft says the hardware change troubleshooter only works with the account that was connected before the change, so link it now while everything works. You need to be signed in as an administrator for Add an account to work.
Where to look, based on how you got Windows
Microsoft’s key locations come down to who sold you Windows. Find your row and check that place first.

| How you got Windows | Where the key is | Who can help if it is missing |
|---|---|---|
| Came installed on a new PC | Built into the PC, in the packaging, or on a Certificate of Authenticity (COA) sticker on the PC | The PC manufacturer |
| Boxed copy from a store | A label or card inside the box | The retailer |
| Digital copy from a store | The confirmation email, or the retailer’s digital locker on its website | The retailer |
| Digital copy from Microsoft’s online store | The confirmation email and your Microsoft account Order history | Microsoft (it keeps records only for its own store) |
| Pro upgrade bought in the Microsoft Store app | No key. The confirmation email has none; the license is tied to your Microsoft account | Sign in with that account |
| Free upgrade from Windows 10 (or 7/8.1 to 10) | No key; you have a digital license | Nothing to find |
| Work or school PC under a volume license | The licensing program’s web portal | Your IT department |
A few practical tips for each place:
- Stickers. Check the bottom of a laptop or the side and back of a desktop case. Labels fade and scuff, so take a clear photo once you find one.
- Email. Search your inbox and archive folders for “product key” together with the store’s name.
- Microsoft account. Sign in to your Microsoft account on Microsoft’s website and open Order history. This only helps if you bought Windows from Microsoft’s own online store.
- Digital lockers. Retailers that sell download copies usually keep the key in your account on their site under orders or downloads.
Keys stored in the PC’s firmware
Many PCs that came with Windows have a key that the manufacturer stored in the firmware (the UEFI built into the motherboard) at the factory, as Microsoft’s OEM Activation 3.0 documentation describes. You almost never need to read that key yourself. When you reinstall the same edition on that PC, choose I don’t have a product key if setup asks, finish setup, and connect to the internet; Windows activates online. For the exact command and what an empty result means, see Windows 11 product key commands.
You may have seen a wmic command that prints this firmware key. It no longer works on current Windows 11. Microsoft’s WMIC removal notice says WMIC was disabled by default in Windows 11 versions 23H2 and 24H2 and removed from supported Windows 11 versions in 2026, and it points people to PowerShell instead. Microsoft offers only a temporary compatibility package for businesses that still depend on WMIC, and it warns that the package is not a secure long-term solution, so do not install it just to read a key.
If the PC no longer starts and you want that key for another machine, Microsoft’s key page sends you to the PC manufacturer for keys that came with a computer.
See the last five characters of the installed key
Windows can show part of the key it is using, which is handy for checking whether a key on a sticker or in an email is the one installed. Microsoft documents a PartialProductKey value that holds the last five characters of the installed key.
- Click Start, type PowerShell, and open Windows PowerShell.
-
Paste this command and press Enter:
Get-CimInstance -ClassName SoftwareLicensingProduct | Where-Object { $_.PartialProductKey } | Select-Object Name, PartialProductKey, LicenseStatus -
Look for the entry whose name mentions Windows. PartialProductKey shows five characters, and a LicenseStatus of 1 means Licensed.
- Compare those five characters with the end of the key you found. If they match, that is the key on this PC.

The older slmgr /dli command in Command Prompt shows similar license details, including part of the key. Microsoft calls slmgr a legacy tool and notes that on PCs activated with a firmware key it can show the partial Windows default key instead, so treat the PowerShell result as the better check and do not read too much into a mismatch on a factory PC.
Registry values and key finder programs
Microsoft’s own instructions for finding a key do not include the registry, and the values that some websites point to are not documented by Microsoft as the key you paid for. Registry Editor also makes it easy to change something by accident. Third-party “key finder” programs are left out here for the same reason, and downloading one from an unfamiliar site carries its own risk. On a PC with a digital license, Microsoft says there is a license instead of a product key, so there is nothing for either to find.
Using the key once you have it
To enter a key on a PC that is not activated, open Settings > System > Activation and select Change product key, then type the 25 characters. During a fresh installation, you can type the key when setup asks, or choose I don’t have a product key and enter it later from the same Activation page.
The key has to match the edition. A Home key will not activate Pro, and Microsoft says a digital license or product key reactivates only if the edition stays the same. If you want Pro on a Home PC, this walkthrough on upgrading Windows 11 Home to Pro explains when an existing license covers it and when you have to buy one.
When no key turns up
- The Activation page says digital license. You are done. For a reinstall, see reinstalling Windows 11 with or without losing your files; the license comes back once the PC goes online.
- You replaced the motherboard. Use the Activation troubleshooter: Settings > System > Activation > Troubleshoot > I changed hardware on this device recently, sign in with the linked Microsoft account, check This is the device I’m using right now, and select Activate. Microsoft’s hardware change page notes that Troubleshoot appears only while Windows is not activated.
- A repair shop reinstalled Windows. If you activated with your own key before, entering it again with Change product key puts things back.
- You never had a license. Buy one from Go to Store on the Activation page. Before paying, check the legal ways to get Windows 11 activated for free, which start with the Windows 10 upgrade.
Keep whatever key you find in a password manager or another safe place, and do not post a photo of it. Most licenses cover one PC, and a key that turns up on another computer can stop yours from validating.
Windows Product Key Questions
Can I see my full product key in Settings?
No. The Activation page shows your activation state and lets you change the key, but it does not list the key, and the PowerShell command above shows only the last five characters. To get the full key, use the sticker, box, email or order record for your purchase.
I upgraded from Windows 10 for free. Where is my key?
There is none. Microsoft says a free upgrade gives a digital license instead of a product key. Link your Microsoft account on the Activation page so the license follows you through a reinstall or hardware change.
Does the wmic command still work on Windows 10?
Microsoft’s 2026 removal covers supported Windows 11 versions, and WMIC was only deprecated in Windows 10, so the command may still run there. It only shows a key the manufacturer stored in firmware; this explainer on reading a Windows 10 key with Command Prompt covers it. Windows 10 no longer receives regular support, so plan a move to Windows 11.
Can I use my key on a new computer?
It depends on the license. For a key that came with a PC, Microsoft directs you to the manufacturer. A retail key you bought yourself can be entered on the new PC with Change product key, as long as it is not also in use on the old one.
Does Microsoft keep a copy of my key?
Only for purchases from Microsoft’s online store, which appear in your account Order history. Keys bought from other stores or that came with a PC are not stored there, so the seller or manufacturer is the place to ask.