How to Find Your Windows 7 Product Key: CMD, Registry & More

Download ArticleDownload Article

Do you need to find the product key for your copy of Windows 7? If you need to reinstall Windows 7 or use your license on another PC, you'll need a valid 25-digit product key to authenticate your version of Windows through Microsoft. Fortunately, there are several easy ways to display your Windows 7 product key without installing software, including using the command prompt (CMD), checking the registry, and running an easy VB script. This How.com.vn article will teach you free ways to find or recover your Windows 7 product key.

Finding Windows 7 Product Key

Open the Windows 7 command prompt and type "wmic path softwarelicensingservice get OA3xOriginalProductKey" to get the product key. If you can't boot into Windows, find the key on the COA sticker on the POC, the Windows 7 packaging, or your receipt. Or, use third-party software like ProduKey and ShowKeyPlus.

Section 1 of 8:

Check the Sticker on the PC

Download Article
  1. How.com.vn English: If your PC...
    If your PC came preinstalled with Windows 7, you should be able to find a Certificate of Authenticity (COA) sticker on your computer. This sticker often has a holographic or rainbow label, but sometimes will just be a plain white sticker. If you're using a tower/desktop computer, it'll usually be on the side or back of the unit. On a laptop, it's typically on the bottom of the unit or under the battery.
  2. Advertisement
Section 2 of 8:

Try the Command Prompt (CMD)

Download Article
  1. How.com.vn English: Use the Windows Command Prompt to find the product key.
    This is a handy way to display your Windows 7 product key if you can no longer read what's on the sticker or can't find it elsewhere. As long as Windows 7 was installed on this computer when you purchased it, you'll be able to pull up the key this way.
    • Click the Start menu and select Run.
    • Type cmd and click OK to open Command Prompt.
    • At the prompt, type wmic path softwarelicensingservice get OA3xOriginalProductKey and press Enter.
    • Find the 25-digit product key on the next line.
Section 3 of 8:

Search the Registry

Download Article
  1. How.com.vn English: Step 1 Open the Registry Editor on your Windows 7 PC.
    In most cases, you can locate the product key in your registry. To open the registry editor:
    • Press Windows key + R to open the Run dialog.
    • Type regedit.
    • Click OK
  2. How.com.vn English: Step 2 Navigate to the correct registry key.
    The path you'll need to access is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Install\UserData. Here's how to get there:
    • Expand the HKEY_LOCAL_MACHINE folder in the left panel.
    • Expand the SOFTWARE folder beneath it.
    • Expand the MICROSOFT folder.
    • Expand the Windows folder.
    • Expand the CurrentVersion folder.
    • Expand the Install folder.
    • Expand the UserData folder.
  3. How.com.vn English: Step 3 Press Ctrl  + F and type ProductID.
    This allows you to search for the product key.
  4. How.com.vn English: Step 4 Click Find Next.
    Now you'll see a "ProductID" entry in the right panel. You can double-click this entry to display an easy-to-copy version of your 25-digit Windows 7 product key.
  5. Advertisement
Section 4 of 8:

Try Third-Party Software

Download Article
  1. How.com.vn English: Download ProduKey from...
    Download ProduKey from http://www.nirsoft.net/utils/product_cd_key_viewer.html. This simple free tool can display product keys for many older Microsoft products, including Windows 7, 8, Vista, Microsoft Office, and SQL Server.[1] To download, click the Download ProduKey (In Zip file) link to download the ZIP file, unzip the file, then double-click the file ending with .exe to display your 25-digit product key.
    • This tool is often falsely flagged as a virus, even though it's totally safe.[2] The only reason it's flagged is because the tool is capable of viewing your product key, which many antivirus apps think can be used to pirate software.[3] As long as you download the tool directly from Nirsoft, it's safe and you can ignore any virus warnings.[4]
    • If you can't get Nirsoft's tool to work, try ShowKeyPlus, which you can download from https://github.com/Superfly-Inc/ShowKeyPlus/releases.[5] You can then unzip the downloaded file and run the Showkeyplus.exe file inside to display your product key.
Section 5 of 8:

Run a Simple Script

Download Article
  1. How.com.vn English: Step 1 Open Notepad on your Windows 7 PC.
    you still can't find the product key, you can paste a simple Visual Basic script into a text file and run it like an application to display your product key. Start by launching Notepad, which you'll find in your Start menu's Accessories folder.
  2. How.com.vn English: Step 2 Paste this code into a blank Notepad file.
    Just copy and paste this block of code into your blank new text file.[6]
    Set WshShell = CreateObject("WScript.Shell")MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))Function ConvertToKey(Key)Const KeyOffset = 52i = 28Chars = "BCDFGHJKMPQRTVWXY2346789"DoCur = 0x = 14DoCur = Cur * 256Cur = Key(x + KeyOffset) + CurKey(x + KeyOffset) = (Cur \ 24) And 255Cur = Cur Mod 24x = x -1Loop While x >= 0i = i -1KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutputIf (((29 - i) Mod 6) = 0) And (i <> -1) Theni = i -1KeyOutput = "-" & KeyOutputEnd IfLoop While i >= 0ConvertToKey = KeyOutputEnd Function
  3. How.com.vn English: Step 3 Save the file as productkey.vbs.
    To do this, just click File > Save as, choose a location you'll remember (your desktop is a good option), type productkey.vbs as the file name, and then click Save.
  4. How.com.vn English: Step 4 Double-click the productkey.vbs file you've created.
    For example, if you saved the file to your desktop, just double-click the productkey.vbs icon on your desktop. This displays a pop-up window that contains your Windows 7 product key.
  5. Advertisement
Section 6 of 8:

Check the Packaging

Download Article
  1. How.com.vn English: If you bought a physical copy of Windows 7 and still have the box, look for the product key sticker on the software.
    Sometimes this sticker is affixed to the outside of the Windows 7 box or CD packaging while other times it may be on a card insert inside the box.[7]
Section 7 of 8:

Search Your Email

Download Article
  1. How.com.vn English: If you ordered Windows 7 online, the product key should be on your confirmation email message or receipt.
    Search your email for a confirmation message from Microsoft (or from whoever you purchased the software) and you'll find the 25-character product key.
  2. Advertisement
Section 8 of 8:

Contact the Manufacturer

Download Article
  1. How.com.vn English: If you're still not able to pull up the product key, the manufacturer of your PC may be able to help.
    As long as you purchased a computer that came with Windows 7 from a manufacturer like Dell, HP, or Lenovo, a technician should be able to provide you with any tools you'll need to pull up your product key.

Community Q&A

Search
Add New Question
  • Question
    How do I convert a 1 gig USB to an 8 gig USB?
    How.com.vn English: Community Answer
    Community Answer
    You can't. You have to buy an 8 gig USB.
  • Question
    I can't download the Win7 ISO because when I type the product key I find on the bottom of my laptop it says it "appears to be for SW pre-installed by the device manufacturer." Any ideas?
    How.com.vn English: Community Answer
    Community Answer
    Do a Google search for "Windows 7 ISO file." It may take some time to find a good website to download it from, but you should be able to get one.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Try re-entering your Windows 7 product key if you receive an “invalid product key” error. This error usually means you mistyped the product key, or that you’re entering the product key for another version of Windows.[8]
      • If you don't have a valid product key, you can try activating without a key using the "rearm" command.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Luigi Oppido
      Co-authored by:
      Computer & Tech Specialist
      This article was co-authored by Luigi Oppido and by How.com.vn staff writer, Nicole Levine, MFA. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 507,408 times.
      How helpful is this?
      Co-authors: 7
      Updated: May 3, 2024
      Views: 507,408
      Categories: Windows 7
      Article SummaryX

      1. Check the COA sticker on the top, back, bottom or any side of your computer.
      2. Check the label or card inside the box if you bought a physical copy of Windows.
      3. Check the confirmation email if you bought Windows online.
      4. Contact your PC manufacturer if you don't have your COA sticker.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 507,408 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement