Where to find your Windows product key

Your Windows product key is a 25-character code that came with your operating system. If Windows came pre-installed on your computer, the key is usually stored in your system firmware rather than printed on a sticker. You can view it without leaving your computer by running a built-in command or checking your system settings.

The fastest method depends on which version of Windows you have and whether you still have the original installation materials. Most people can retrieve their key in under two minutes using the command line tool built into Windows.

Key Takeaways

  • Your Windows product key is a 25-character code that proves you own a license to use Windows on your computer.
  • If Windows came pre-installed, the key lives in your computer's firmware and you can view it through the command line or Settings.
  • The fastest method is running a single command in PowerShell, which displays your key in seconds.
  • If you bought Windows separately, check your email receipt, the product packaging, or your Microsoft account for the key.
  • A missing or unreadable key usually means contacting Microsoft support or your computer manufacturer for proof of purchase.

Retrieve your key using PowerShell

PowerShell is a command-line tool built into Windows that can read your product key directly from your system. This method works on Windows 10 and Windows 11 and takes about 30 seconds.

Step 1: Right-click the Start button and select "Windows PowerShell (Admin)" or "Terminal (Admin)". If you see "Terminal" instead of PowerShell, that is fine — they work the same way for this task.

Step 2: Copy this entire command and paste it into the window:

powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"

Step 3: Press Enter. Your 25-character product key will appear on the next line. Write it down or take a screenshot immediately — it will disappear when you close the window.

If nothing appears or you see an error, your key may not be stored in the firmware. This sometimes happens on very new computers or after a major Windows update. Move to the next method.

Check your Microsoft account and email

If you bought Windows directly from Microsoft or through the Microsoft Store, your product key is tied to your Microsoft account. You can view it by signing into your account on Microsoft's website.

Step 1: Go to account.microsoft.com and sign in with the email address you used to purchase Windows.

Step 2: Click "Your info" or "Devices" in the left menu, depending on your account layout.

Step 3: Look for a section labeled "Licenses" or "Digital licenses". Your product key should be listed there with the purchase date.

If you cannot find it in your account, check your email for a receipt from Microsoft. Search your inbox for "product key", "Windows license", or "order confirmation". The key is usually in the email body or as an attachment.

Look for the key on your original materials

If you purchased a physical copy of Windows, the product key was printed on the packaging or on a card inside the box. Check anywhere the original materials are stored.

The key is typically a white sticker or card with 25 characters printed in groups of five, separated by hyphens. It looks like this: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. If the sticker is faded or damaged, take a photo under good lighting and zoom in — the characters are usually still readable.

If you bought Windows from a retailer like Best Buy or Staples, your receipt may also have the key printed on it. Check your email for digital receipts if you cannot find the physical one.

Contact your computer manufacturer

If your computer came with Windows pre-installed and you cannot retrieve the key through PowerShell or your Microsoft account, your manufacturer has a record of it. Dell, HP, Lenovo, and other major brands keep activation records tied to your computer's serial number.

Step 1: Find your computer's serial number. This is usually printed on a sticker on the bottom or back of your device. On a laptop, it is often under the battery or on the underside of the case.

Step 2: Visit your manufacturer's support website and look for a "Contact Support" or "Chat with Support" option. Have your serial number ready.

Step 3: Explain that you need your Windows product key for your specific computer model and serial number. They will ask for proof of purchase — your receipt, order number, or warranty information. Once verified, they can provide the key or help you reactivate Windows.

This process usually takes 24 to 48 hours if done by email, or a few minutes if you use live chat.

What to do if your key is not working

A product key that does not work usually means it has already been used on another computer, it was entered incorrectly, or it is not valid for your version of Windows. Do not try the key multiple times — Windows will lock you out temporarily after several failed attempts.

If you are trying to activate Windows and the key is rejected, check that you typed it correctly. Product keys are case-insensitive, but the hyphens must be in the right places. Copy and paste the key instead of typing it by hand whenever possible.

If the key is correct but still does not work, contact Microsoft support directly. Go to support.microsoft.com, select "Windows", and choose "Activation and licensing". Explain that your key is not activating, and provide the error message you received. Microsoft can verify the key and either reactivate it or issue a replacement.

Understand what your product key is for

Your Windows product key proves that you own a license to use Windows on one computer. It is not the same as your Microsoft account password, and you should not share it with anyone. If someone has your product key, they can use it to activate Windows on their own computer, which violates the license agreement.

You only need your product key if you are reinstalling Windows, activating it on a new computer, or proving ownership to Microsoft support. Day-to-day use of Windows does not require you to enter or remember your key — Windows stores it automatically after the first activation.

Frequently Asked Questions

Can I use the same product key on two computers?

No. Each product key is licensed for one computer only. If you try to use the same key on a second computer, Windows will detect it and ask you to purchase a new license. You can transfer a key to a different computer, but only if you uninstall Windows from the original one first.

What if the PowerShell command does not show a key?

This usually means your key is not stored in your system firmware — common on very new computers or after a clean Windows installation. Check your Microsoft account, your original purchase receipt, or contact your computer manufacturer with your serial number. They can confirm whether your copy of Windows is registered to your device.

Is my product key the same as my Windows license?

Your product key is the proof of your license, but they are not the same thing. The license is the legal right to use Windows; the key is the 25-character code that activates it. You need the key to prove you own the license, but the license itself is what you actually purchased.

Can I look up someone else's product key?

No. You can only view the product key on a computer you own or have administrator access to. The PowerShell command requires admin rights, and Microsoft account keys are protected by login credentials. Attempting to retrieve someone else's key without permission is not possible through normal methods.

What happens if I lose my product key?

If you lose your key and cannot retrieve it through PowerShell or your Microsoft account, contact Microsoft support with proof of purchase. Bring your receipt, order confirmation, or any documentation showing you bought Windows. Microsoft can verify your purchase and help you reactivate or replace your key.