How to Find and Recover Windows or Office Product Keys
In this article
The fastest way to find a Windows or Office product key is to check your Microsoft account's order history for a digital purchase, then look for the key on the card or email you received, and finally use an official command-line tool to read the key embedded in your PC's firmware. Windows and Office activate differently: a retail key can be moved between PCs, while an OEM key is tied to the motherboard and an Office 365 subscription is tied to your account rather than a 25-character code. Before you start, sign in to the same Microsoft account you used when you bought or activated the software, because that is where most modern licenses live.
What You'll Need
- The Microsoft account you used to buy or activate Windows or Office
- The email address you used for the purchase, if you bought from a retailer
- Administrator rights on the PC (for the command-line methods)
- The original packaging or card, if you bought a boxed copy
- A working internet connection to reach your account order history
Step-by-Step
- Check your Microsoft account order history first. Go to account.microsoft.com and sign in. Open the Services & subscriptions area (labels vary slightly by region and version). Digital purchases of Windows and Office appear there, and for many products the product key or an install link is shown. If you see the product listed, you may not need the key at all, because activation can follow your account.
- Search your email for the purchase receipt. Search for the product name plus words like "product key" or "order confirmation." Retailers such as Microsoft Store, Amazon, and large electronics chains email the key or a redemption link. Check spam and the email address you used at checkout, not just your main inbox.
- Look at the physical card or box. A boxed retail copy has the key on a sticker inside the case or on a card. A key card from a retailer has a scratch-off panel; scratch gently so you do not damage the characters. Photograph it before scratching.
- Read the OEM key from your PC's firmware (Windows only). On a PC that came with Windows preinstalled, the key is stored in the motherboard firmware. Open Command Prompt as administrator and run:
wmic path softwarelicensingservice get OA3xOriginalProductKey. If a key is printed, that is your OEM key. If the command returns nothing, the PC may use digital activation instead, which needs no key. This method does not work on most Macs and does not reveal Office keys. - Use PowerShell as an alternative. In an administrator PowerShell window, run:
(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey. It returns the same firmware key as the command above. Again, an empty result is normal on digitally activated PCs. - Check the installed Office version and activation state. Open any Office app, go to File > Account. The page shows whether the product is activated and, for subscription products, which account holds the license. For a one-time purchase, it may show only "Product Activated" without the key, which is expected.
- Recover an Office key from your Microsoft account. Sign in at account.microsoft.com and open the Services & subscriptions page. One-time Office purchases and Microsoft 365 subscriptions are listed there. For a subscription, you do not need a key; just sign in to Office with that account. For a one-time purchase tied to your account, the order page provides the key or install option.
- If you have a product key but Windows will not accept it, open Settings > System > Activation > Change product key (the exact path varies by Windows version) and enter it carefully, using the correct characters. Then run the activation troubleshooter from the same page.
- If you are moving a retail license to a new PC, first confirm it is a retail, not OEM, license. On the old PC, open Settings > System > Activation and check the edition and activation type. Then enter the key on the new PC. If activation fails because the key is in use, use the activation troubleshooter, which can transfer a retail license when you are signed in with the same Microsoft account.
- Record the key somewhere safe. Store it in a password manager or a printed note kept with the device. Do not post it publicly or send it in chat; anyone with the key can attempt activation.
Common Mistakes
Many people confuse the Windows product key with the Office key. They are separate products with separate keys, and a Windows key will never activate Office. Another frequent error is assuming a subscription has a 25-character key; Microsoft 365 subscriptions activate by signing in, not by entering a code. People also scratch key cards too hard and destroy characters, or mistype 0 and O, 1 and I, and 5 and S. Finally, an OEM key from one PC will not activate a different PC, and trying to force it wastes time.
Tips
Take a photo of any key card before scratching. Keep the receipt email in a labeled folder. If you buy a new PC, sign in with your Microsoft account during setup so digital activation is linked to you. For Office, prefer signing in with the purchasing account rather than hunting for a key, because subscription licenses follow the account. If you use a password manager, add the product key as a secure note with the device name.
Troubleshooting
If the command returns no key, the PC likely uses digital activation or the firmware field is empty; this is not an error. If account order history does not show your purchase, confirm you are signed in with the correct account and check other email addresses you may have used. If Windows says the key is already in use, run the activation troubleshooter while signed in with the Microsoft account that owns the license. If Office says the product is unlicensed, sign out and back in, then check File > Account for the signed-in address. If you cannot find a key anywhere, contact Microsoft support with your proof of purchase; do not download key-finder tools from unknown sites, as they can be malware.
Frequently Asked Questions
Can I find my Windows key without installing anything?
Yes. The built-in Command Prompt or PowerShell command that reads the firmware key works on most prebuilt PCs without extra software.
Where is my Office product key?
For a subscription, there is no key; sign in with the purchasing account. For a one-time purchase, check your Microsoft account order history or the retailer email or card.
Does a Windows key activate Office?
No. Windows and Office are separate products with separate licenses.
Can I move my Windows license to a new PC?
Only a retail license can be moved. OEM licenses are tied to the original PC. Use the activation troubleshooter if a retail transfer fails.
Is it safe to use a third-party key finder?
No. Use only official Microsoft account pages and built-in Windows tools. Third-party key finders can be malicious.
What if I lost the key and have no receipt?
Check your Microsoft account first. If nothing appears, contact Microsoft support with any proof of purchase you have.