Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar
* * * * * 1 votes

Use Command Prompt or PowerShell to find Windows Product Key


  • Please log in to reply
6 replies to this topic

#1 FreeBooter

FreeBooter

  •  Avatar image
  • Members
  • 5,056 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:06:24 PM

Posted 12 June 2016 - 02:42 AM

Use Command Prompt or PowerShell to find Windows Product Key

In this post, i will show you how to find the original Windows Product Key using Command Prompt or PowerShell, from BIOS or Registry. It works for Retail & OEM licenses too.

Open an elevated Command Prompt window, type the following command and hit Enter:

 

wmic path softwarelicensingservice get OA3xOriginalProductKey


aBvNtkD.png

 

Your Windows product key will be displayed.

Open an elevated PowerShell prompt window, type the following command and hit Enter:

 

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


ZynbP0t.png

 

Your Windows license key will appear! This will work on Windows 10 / 8 / 8.1 PC.

In Windows 10, the product key will probably be encrypted, tied to your Microsoft Account and stored by Microsoft in the cloud too.


Edited by FreeBooter, 12 June 2016 - 07:45 AM.

Helping public with their PC problems as have been doing for years.

Please subscribe to my YouTube channel: https://www.youtube.com/c/Freebooter


BC AdBot (Login to Remove)

 


#2 SleepyDude

SleepyDude

  •  Avatar image
  • Malware Response Team
  • 4,174 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:03:24 PM

Posted 12 June 2016 - 06:15 AM

Hi,

 

I think this only works to get the key stored on the BIOS/UEFI for machines with Windows 8 and above.

 

It doesn't work on my Windows 7 OEM.


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#3 Platypus

Platypus

  •  Avatar image
  • Helper Emeritus
  • 20,786 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:24 AM

Posted 12 June 2016 - 06:23 AM

It doesn't work on my Windows 7 OEM.


Nor mine.

#4 FreeBooter

FreeBooter
  • Topic Starter

  •  Avatar image
  • Members
  • 5,056 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:06:24 PM

Posted 12 June 2016 - 07:45 AM

Hi,

 

I think this only works to get the key stored on the BIOS/UEFI for machines with Windows 8 and above.

 

It doesn't work on my Windows 7 OEM.

It works for Retail & OEM licenses too. I have just test the commands and both commands not valid for Windows Vista and Windows 7 OS's.


Helping public with their PC problems as have been doing for years.

Please subscribe to my YouTube channel: https://www.youtube.com/c/Freebooter


#5 mazdarmb

mazdarmb

  •  Avatar image
  • Banned Spammer
  • Member rank image
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:24 PM

Posted 23 November 2016 - 04:26 AM

It seems not work on my Windows 10



#6 SleepyDude

SleepyDude

  •  Avatar image
  • Malware Response Team
  • 4,174 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:03:24 PM

Posted 23 November 2016 - 06:34 AM

It seems not work on my Windows 10

 

It should work for Windows 10 if 10 is the original OS installed by the manufacture on the machine (OEM license). It doesn't work if you got Windows 10 from the free upgrade done by Microsoft to the owners of Windows 7 and Windows 8.

 

To recover the Windows 10 key try with ProduKey http://www.nirsoft.net/utils/product_cd_key_viewer.html


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#7 piBoss

piBoss

  •  Avatar image
  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:24 AM

Posted 17 October 2017 - 06:29 AM

Hi,

 

I think this only works to get the key stored on the BIOS/UEFI for machines with Windows 8 and above.

 

It doesn't work on my Windows 7 OEM.

Hi Sleepy;
If you've still not been able to get the key, as I wasn't either, try using Powershell and entering only the first part as follows:

(Get-WmiObject -query `select * from SoftwareLicensingService')

This showed me everything regarding the Licensing Service, including my key.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users