The safest place to find a Windows product key is the order or email where you bought it. On the PC itself, Windows only keeps part of a retail key, so a command can show the last five characters and the license type, but not the whole key. Only PCs with a key stored in firmware can show a full key.
Start with where you bought it
A key you purchased separately is stored in your purchase record, not on the computer. Check these in order:
- The order page or receipt from the shop. At Webdigikey, keys are in your account under My orders, never inside an email.
- The email or card that came in the box, if you bought a boxed copy.
- Your Microsoft account, if the license is a digital license. In that case there may be no key to read at all, because Windows is tied to your account and hardware.
See what is installed with slmgr
The slmgr tool tells you which license the PC is using, even when it cannot show the full key.
- Press the Windows key, type
cmd, right-click Command Prompt and choose Run as administrator. - Run
slmgr /dli. - A window shows the edition, the partial product key (the last five characters) and the license channel, such as Retail, OEM or Volume.
Run slmgr /dlv for more detail, including the activation state and the remaining grace period. The last five characters are enough to match a key you saved against the one in use.
Read the key stored in the firmware
Many PCs bought with Windows preinstalled have an OEM key written into the motherboard firmware. To read it, open PowerShell as administrator and run:
(Get-CimInstance -Query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
If the PC has a firmware key, it prints 25 characters. If the line is empty, there is no key in firmware, which is normal for a retail key you installed yourself. A firmware key is tied to that motherboard and is meant for that machine only.
Why key finder tools disagree
Free key viewers read a field in the registry called DigitalProductId. That field often holds a generic key used by the installer, not the key you bought, especially after an upgrade or when Windows is activated with a digital license. The output looks like a real key, so people copy it and then find that it does not work on another PC.
Treat the result as a hint at best. The reliable sources are your purchase record and slmgr /dli.
Check whether Windows is actually activated
Open Settings, System, Activation. The activation state should say Active, and the page may say that Windows is activated with a digital license linked to your Microsoft account. If it is not active, follow How to activate Windows 11 Pro with a product key. If you see an error code instead, look it up in Windows activation error codes and fixes.
Keep your key safe from now on
Save the key in a password manager or a private note the day you buy it. Do not post it in screenshots or forums. If you plan to move to a new PC later, you will need it, and the steps are in Can you transfer a Windows license to a new PC?.
If you are shopping for a new license, Windows 11 Pro and Windows 10 Pro are sold as retail licenses for one PC. Your key stays in My orders as long as your account exists, so you never need a key finder.
Frequently asked questions
Can I see my full Windows key from Settings?
No. Settings shows the activation state and the edition, not the key. Use your purchase record, or slmgr /dli for the last five characters.
Does a firmware key work on another PC?
An OEM key stored in firmware is licensed for the PC it came with. Moving a retail key between PCs is allowed under the license, but the OEM key is not meant to move.
What does the last five characters of the key tell me?
It identifies which key is installed. Match it with the key in your records to confirm that you are looking at the right one.
Is it safe to use a key finder download?
Be careful. Some key finder downloads bundle unwanted software, and their output is often a generic key. The built-in tools above need no download.
Microsoft, Windows, Office and other product names are trademarks of their respective owners.