How to find Windows Product Key using Command Prompt or PowerShell

47 Comments

  1. I can’t get either one of those commands to work, but other finders do find my key.

  2. commands are not getting output when i tested (i am testing in computers in a AD domain )

  3. copy and paste

    Open a PowerShell windows with administrative privileges, type the following command and hit Enter:

    powershell “(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey

  4. Wow, it found my OEM product key for Windows 8.1! I am so pleased because I have tried everything to find it. Many thanks for this tip.

  5. A lot easier to download the Bel-Arc Advisor,it gives you anything you want to know about your system,and i mean everything.

  6. I copied and pasted in the command prompt and powershell in windows 8.1 pro and I get no results as Dennis Thompson stated.

  7. wmic path softwarelicensingservice get OA3xOriginalProductKey
    is working works for me to

  8. I have a Win7 64-bit machine. When I try this command in a command prompt window as admin I get an invalid query error.

  9. Personally, I use Belarc Advisor to obtain my Windows and Office license keys. The only problem is that since Office 2013, the Office license key is nowhere to be found. Can anyone provide a way to retrieve Office 2013 and newer license keys?

  10. Does anyone think the Republicans will ever again find a product key for the white house ,that would be called the Presidency ?

  11. I have Windows 7 Ultimate and I simply cannot have this command (wmic path softwarelicensingservice get OA3xOriginalProductKey) work!!

    I tried several folders using the command prompt and even using Run as an Administrator and nothing works!
    C:Windowssystem32
    C:
    C:usersuser
    and more and nothing works!

  12. Its work but the product key is not same.

    My last 5 key is M3YM6 (I just making the key up).
    When I do the command, the last 5 key isn’t same.
    Does the product key in the cmd/power shell is working with the same windows?

  13. i got my product key for windows 10, but when i tried it, it states that “This product key didn’t work. Please check it and try again, or try a different key.”

  14. This worked on my before I used the Reset feature on my Windows 10 and it doesn’t work anymore now; it just puts out a blank line for outpost.

  15. The command retrieves the embedded product key that your laptop/PC came with from the manufacturer. The key it finds is the key for the original Operating System that came with your computer. Whether its Win 8/8.1/10

  16. i have sony vivo laptop with windows 7 pro and its sticker. then i changed it with c racked version of windows8 now it want to turn on to aactivated version of windows7 pro. please tell me how t do this

  17. Bel-Arc reports different keys than the command line. Can’t trust any of the methods I have tried so far. How do you know which is the real one?

  18. So, if you upgraded from Windows 7 Home to Pro and then upgraded to Windows 10 Pro, the key that is reported by the command line is not the current license, correct? How do you find the current license? Bel-Arc?

  19. For current product key, either use Belarc like you mentioned or Magjcal Jellybean which is what I use. If you’re still having issues with activating Windows. You can call Microsoft support and they should be able to help depending on the situation.

  20. The commands above give me an empty output, and of the product key finders only two gives me the same key – namely License Crawler, and Magical Jelly Bean. The rest of them gives me “other” Windows 10 product keys – if any at all.

  21. IT does not work with 64-bit Windows 7 Professional OEM HP laptop. No error, there is simply no output. A new command line appears and nothing more.

    This VBS script works (save text as a .vbs file):

    Set WshShell = CreateObject(“WScript.Shell”)
    MsgBox ConvertToKey(WshShell.RegRead(“HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDigitalProductId”))
    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

  22. I would like to share with you my experience, I went to seach.vanskeys to buy a key, to my surprise, their attitude is very good, but the key work is normal, there is very little money I spent, very happy the first purchase and recommend it to you.

  23. How can I retrieve my windows 8.1 key from a non bootable windows 8.1. I lost my CD Key and windows got corrupted and when I reset it, it starts loading and halts with a blank screen and stops there. I tried this command from DOS by going from window installation disk, repair windows, advanced command prompt, but its giving me an error. Description = Not Found. Can anyone help to retrieve this product key.

  24. doesn’t work. all those values are empty:
    OA3xOriginalProductKey :
    OA3xOriginalProductKeyDescription :
    OA3xOriginalProductKeyPkPn :

  25. I found my product key but it turned out i don’t need it because i upgraded to Windows 10 when I was signed in with my Microsoft account,so as soon as i signed in it activated without an issue

  26. the command works, but there is no key it shows just an empty value and go back to command line, i had to use regedit instead.
    Entrar en regedit
    EquipoHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform

  27. Use this site and download. I have tried others and it matches the result with this one so this is authentic. https://www.nirsoft.net/utils/product_cd_key_viewer.html

    But when I called Microsoft, they said that the product key is not valid which is link to my Microsoft account after it has been activated or downloaded for free. I think there’s a product key embedded in the downloaded free upgrade of windows 10 for it to work. You can give it a try. I think I have spoken to a less experienced agent who doesn’t know what she is doing nor has lack of knowledge regarding how things would work.

  28. Thanks, the powershell/cmd are useless but the regedit method worked on a desktop, not on a 2012 server.

324 Shares
Share via
Copy link
Powered by Social Snap