Windows 10: How to Find Your Windows 10 Product Key Using the Command Prompt?

Discus and support How to Find Your Windows 10 Product Key Using the Command Prompt? in Windows 10 News to solve the problem; Finding your Windows 10 product key can be a challenge at times. Not everyone notes it down and keeps them handy. When it comes to finding it within... Discussion in 'Windows 10 News' started by GHacks, Dec 30, 2022.

  1. GHacks
    GHacks New Member

    How to Find Your Windows 10 Product Key Using the Command Prompt?


    Finding your Windows 10 product key can be a challenge at times. Not everyone notes it down and keeps them handy. When it comes to finding it within the system, you need to know where to look. We're here to help you find your product key using simple tricks.

    Using the Command Prompt


    When looking for your Windows 10 product key using the command prompt, you will need to run it as an admin. To do this, you need to search 'cmd' in your search bar. When you find the command prompt, right-click on it and select 'run as administrator.' In some cases, you may be asked for your Windows password. Once the command prompt is open, paste the below code in the dialog box and press enter.

    wmic path softwarelicensingservice get OA3xOriginalProductKey

    You will then see a 25-digit product key on your screen. This is the product key stored in your UEFI firmware or computer BIOS. This means this is the original product key for your computer. If you've used a different key to reinstall Windows, you may need other tools to find that key.

    Using the Windows Registry Method


    To find your product key using the registry, open notepad. Copy and paste the below code into the notepad.

    Set WshShell = CreateObject("WScript.Shell")

    MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

    Function ConvertToKey(Key)

    Const KeyOffset = 52

    i = 28

    Chars = "BCDFGHJKMPQRTVWXY2346789"

    Do

    Cur = 0

    x = 14

    Do

    Cur = Cur * 256

    Cur = Key(x + KeyOffset) + Cur

    Key(x + KeyOffset) = (Cur \ 24) And 255

    Cur = Cur Mod 24

    x = x -1

    Loop While x >= 0

    i = i -1

    KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput

    If (((29 - i) Mod 6) = 0) And (i <> -1) Then

    i = i -1

    KeyOutput = "-" & KeyOutput

    End If

    Loop While i >= 0

    ConvertToKey = KeyOutput

    End Function

    Click on the file menu at the top left and then click on 'save as.' In the explorer dialog box that opens, select 'all files' as the file type. You can give any name to the notepad; however, the extension should be .vbs. For example, you can save it as windowsproductkey.vbs.

    Once you save the file, close it and open it again. Your product key will be displayed each time you open the file.

    How to Find Your Windows 10 Product Key Using the Command Prompt? Windows-10-Find-The-Product-Key-Useful-Tips-Tricks-scaled.jpg

    Never Lose Your Product Key Anymore


    Now that you know how to retrieve your product key, you can reinstall Windows at any time without worrying about purchasing a new license. We hope these methods helped you. Keep reading this space for more such tips and tricks.

    Thank you for being a Ghacks reader. The post How to Find Your Windows 10 Product Key Using the Command Prompt? appeared first on gHacks Technology News.

    read more...
     
    GHacks, Dec 30, 2022
    #1

  2. Convert a Windows 8pro product key to a Windows 10pro produkt key

    Hi Andre,

    Thank you for contacting Microsoft community.

    I suggest you to Uninstall the license using the following steps.

    • Press Windows key + X
    • Click Command Prompt (Admin)
    • At the command prompt, type: slmgr.vbs -upk
    • Press Enter, this will uninstall the product key from the computer.
    Further on, install Windows 8.1 activate the copy with the product key on the new machine. Then again upgrade the same to Windows 10 using Window Update or Media Creation Tool.

    Hope this information was helpful and do let us know if you need further assistance. We will be glad to assist.






     
    Karthicka_R, Dec 30, 2022
    #2
  3. cwtech Win User
    command prompt will not open in safe mode with command prompt

    Would I just follow the same steps within safe mode after hooking up to the other system?
     
    cwtech, Dec 30, 2022
    #3
  4. How to Find Your Windows 10 Product Key Using the Command Prompt?

    Windows 10 Product Key

    Hi Oscar,

    Since the laptop has no battery compartment wherein the product key is usually located, we recommend that you follow these steps to find your Windows product key:

    • Press Windows + X and select Command Prompt (Admin).
    • Enter this command: wmic path SoftwareLicensingService get OA3xOriginalProductKey
      and hit Enter.

    Also, if you're looking to reinstall Windows 10 after a hardware replacement, we recommend that you follow the steps provided in this

    article
    .

    Let us know if performing these steps resolved the issue.
     
    Dennis Mop, Dec 30, 2022
    #4
Thema:

How to Find Your Windows 10 Product Key Using the Command Prompt?

Loading...
  1. How to Find Your Windows 10 Product Key Using the Command Prompt? - Similar Threads - Find Product Key

  2. how to find your laptop product key

    in Windows 10 Gaming
    how to find your laptop product key: how to find your laptop product key https://answers.microsoft.com/en-us/windows/forum/all/how-to-find-your-laptop-product-key/121b64ea-5edd-48ca-8266-a7972b7b7136
  3. how to find your laptop product key

    in Windows 10 Software and Apps
    how to find your laptop product key: how to find your laptop product key https://answers.microsoft.com/en-us/windows/forum/all/how-to-find-your-laptop-product-key/121b64ea-5edd-48ca-8266-a7972b7b7136
  4. How do I find windows 10 product key without command prompt?

    in Windows 10 Updates and Activation
    How do I find windows 10 product key without command prompt?: Hi, I'm a computer novice and not very familiar with the command line, so I want to ask, is there any way to find Windows 10 product key without using the command prompt? I tried several methods, but they don't seem to be suitable for a novice like me... Do you have any...
  5. How do I find windows 10 product key without command prompt?

    in Windows 10 Gaming
    How do I find windows 10 product key without command prompt?: Hi, I'm a computer novice and not very familiar with the command line, so I want to ask, is there any way to find Windows 10 product key without using the command prompt? I tried several methods, but they don't seem to be suitable for a novice like me... Do you have any...
  6. How do I find windows 10 product key without command prompt?

    in Windows 10 Software and Apps
    How do I find windows 10 product key without command prompt?: Hi, I'm a computer novice and not very familiar with the command line, so I want to ask, is there any way to find Windows 10 product key without using the command prompt? I tried several methods, but they don't seem to be suitable for a novice like me... Do you have any...
  7. how to find out the microsoft product key from Command Prompt in troubleshooting from usb...

    in Windows 10 Gaming
    how to find out the microsoft product key from Command Prompt in troubleshooting from usb...: My laptop is a dell inspiron 3501, I want to reinstall Windows 10 because of the blue screen, but can't Startup Repair and System Restore, for the command prompt it says X:\Sources, and when bootrec/rebuildbcd total identified windows installations: 0, that's why I want...
  8. how to find out the microsoft product key from Command Prompt in troubleshooting from usb...

    in Windows 10 BSOD Crashes and Debugging
    how to find out the microsoft product key from Command Prompt in troubleshooting from usb...: My laptop is a dell inspiron 3501, I want to reinstall Windows 10 because of the blue screen, but can't Startup Repair and System Restore, for the command prompt it says X:\Sources, and when bootrec/rebuildbcd total identified windows installations: 0, that's why I want...
  9. How to find the product key of your Windows 10 PC?

    in Windows 10 Updates and Activation
    How to find the product key of your Windows 10 PC?: How to find the product key of your Windows 10 PC? https://answers.microsoft.com/en-us/windows/forum/all/how-to-find-the-product-key-of-your-windows-10-pc/0f0a4b38-b9b8-4872-9ef7-531d96ac02dc
  10. How to find your Windows 10 Product Key

    in Windows 10 Updates and Activation
    How to find your Windows 10 Product Key: Hi, Is there an official way to find which Windows 10 key you are using on your machine? I've seen a few 3rd party software that does this, but before using those, and risk having my key send to their servers, I would like to know if there is an official way to find it....