Where to find your Windows product key on your computer

Your Windows product key is a 25-character code that proves you own a legitimate copy of Windows. It looks like this: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX, where X is a letter or number. The easiest place to find it depends on how you installed Windows and how long you have owned your computer.

If you bought Windows pre-installed on a new computer from Dell, HP, Lenovo, or another manufacturer, the key is usually printed on a sticker attached to the back or bottom of your device. Look for a label that says "Windows" or "Product Key" — it will be white or silver with black text. Take a photo of it or write it down in a safe place.

If you installed Windows yourself using a disc or USB drive, the key came in the email confirmation or on the packaging. Search your email for messages from Microsoft or the retailer you bought from. Look for subject lines containing "product key", "license", or "order confirmation".

How to find your key using Windows settings

Windows 10 and Windows 11 can show you your product key through the Settings app, though the process requires a few steps. Open Settings by pressing the Windows key and typing "settings", then click the Settings app.

Go to System in the left menu, then scroll down and click About. Look for the line that says "Windows specifications". You will see your Windows edition (Home, Pro, Enterprise) and whether it is activated, but the full product key will not appear here — this screen only confirms your copy is genuine.

To see the actual key, you need to use a command. Press Windows key + R to open the Run box, type powershell, and press Enter. In the PowerShell window, paste this command: Get-WmiObject -query 'select * from SoftwareLicensingService' | Format-List and press Enter. The key will appear next to "OA3xOriginalProductKey" if your computer came with Windows pre-installed, or next to "PartialProductKey" if you installed it yourself.

Key Takeaways

  • Pre-installed Windows keys are usually on a sticker on the back or bottom of your computer, and taking a photo of it is the fastest way to keep a record.
  • If you bought Windows separately, your product key is in the email confirmation or on the packaging from the retailer.
  • Windows Settings shows whether your copy is activated but not the full key; you need PowerShell to view the complete code.
  • Once you find your key, store it in a password manager or write it down and keep it somewhere safe, because you will need it if you reinstall Windows.

Why you need your product key and what it does

Your product key tells Microsoft that your copy of Windows is legitimate and not pirated. When you first set up Windows or reinstall it, the system asks for this key to set up. set up is a one-time process that links your key to your computer's hardware and confirms you own a legal license.

Without set up, Windows will still run, but you will see a watermark in the bottom right corner of your screen saying "set up Windows now", and you will not be able to customize your desktop background or change certain settings. More importantly, an unactivated copy does not receive security updates, which leaves your computer vulnerable to malware and hackers.

If you move Windows to a different computer or reinstall it on the same computer after a major hardware change, you will need the key again. Some keys are tied to one computer only (OEM keys from manufacturers), while others can be used on multiple machines (retail keys you bought separately).

What to do if you cannot find your product key

If you have lost the sticker, deleted the email, or cannot locate the key anywhere, you have options. If your Windows installation is already activated on your computer, you do not need the key right now — set up is permanent on that machine. You only need it if you reinstall Windows or move it to a different computer.

If you do need to reinstall and cannot find the key, contact the company you bought the computer from (Dell, HP, Lenovo, etc.) with proof of purchase. They can sometimes provide a replacement key. If you bought Windows separately from Microsoft, a retailer, or another seller, contact them with your order number or receipt.

As a last resort, you can purchase a new Windows license from Microsoft directly through their website. This is more expensive than finding your original key, but it guarantees you have a valid, activated copy going forward.

Keeping your product key safe

Once you find your key, treat it like a password. Store it in a password manager such as Bitwarden, 1Password, or KeePass rather than writing it on a sticky note or saving it in a plain text file on your desktop. Password managers encrypt your data and make it impossible for malware to read.

If you use a password manager, you can store the key, the email confirmation, and a photo of the sticker all in one place. Add a note about where you bought it and when, so you have context if you need to contact support later.

Never share your product key with anyone, and be cautious of websites or people claiming they can recover a lost key for a fee. Legitimate recovery usually comes from the company you bought from, not a third party.

The difference between OEM and retail product keys

An OEM key comes pre-installed on computers from manufacturers like Dell, HP, or Lenovo. It is tied to that specific computer and cannot be transferred to a different machine. If your hard drive fails and you replace it, the key usually stays activated. If you sell the computer, the key stays with it and cannot be used elsewhere.

A retail key is one you buy separately from Microsoft, Amazon, Best Buy, or another retailer. These keys can usually be transferred to a different computer if you uninstall Windows from the old one first. Retail keys cost more upfront but offer more flexibility if you upgrade your hardware or buy a new computer.

You can tell which type you have by looking at the sticker or email. OEM keys often say "OEM" or come from a computer manufacturer. Retail keys usually come from Microsoft directly or a major electronics retailer and include instructions about transferring the license.

Frequently Asked Questions

Can I use the same product key on two computers at the same time?

No. One key activates one computer at a time. If you try to set up a second computer with the same retail key, Microsoft will deactivate it on the first computer. OEM keys cannot be transferred at all — they are locked to the original machine.

What happens if I reinstall Windows and lose my product key?

If your computer came with Windows pre-installed, the key is usually stored in the firmware and will reactivate automatically when you reinstall. If you bought a retail key separately, you will need to enter it during the reinstall. Contact the retailer or Microsoft if you cannot find it.

Is my product key the same as my Microsoft account password?

No. Your product key activates Windows on your computer. Your Microsoft account password is separate and logs you into services like Outlook, OneDrive, and the Microsoft Store. You need both, but they are different things.

Can I sell my product key to someone else?

It depends on the key type. OEM keys are tied to the original computer and cannot be sold separately. Retail keys can sometimes be transferred if you uninstall Windows from your computer first and follow Microsoft's transfer process, but reselling keys is restricted by the license agreement.

What if someone is asking for my product key online?

Be cautious. Microsoft support will never ask for your full product key in an email or chat. Scammers sometimes pose as Microsoft to steal keys. If you contact Microsoft directly through their official website, they may ask for the last few characters to verify your account, but never give out the whole key to anyone you did not contact first.