Jump to content


 


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.

Photo
* * * * * 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

  • Members
  • 3,009 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:05:45 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.


Share your knowledge. Its a way to achieve immortality.
- Dalai Lama

 

 


BC AdBot (Login to Remove)

 


m

#2 SleepyDude

SleepyDude

  • Malware Response Team
  • 2,634 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:03:45 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

  • Moderator
  • 10,675 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Australia
  • Local time:01:45 AM

Posted 12 June 2016 - 06:23 AM

It doesn't work on my Windows 7 OEM.


Nor mine.

Top 5 things that never get done:

1.


#4 FreeBooter

FreeBooter
  • Topic Starter

  • Members
  • 3,009 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:05:45 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.



Share your knowledge. Its a way to achieve immortality.
- Dalai Lama

 

 


#5 mazdarmb

mazdarmb

  • Banned Spammer
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:45 PM

Posted 23 November 2016 - 04:26 AM

It seems not work on my Windows 10



#6 SleepyDude

SleepyDude

  • Malware Response Team
  • 2,634 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:03:45 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

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:45 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.






11 user(s) are reading this topic

0 members, 11 guests, 0 anonymous users