How to Retrieve Your Windows Product Key Using PowerShell

 
 
  • Gérald Barré

If you need to reinstall Windows, having your original product key is essential for activation. If you can't locate your product key, you can retrieve your current product key using PowerShell. This method is helpful if you have a digital license or purchased Windows online and didn't save the key.

Run the following PowerShell command to extract your product key from the Windows Management Instrumentation (WMI) database:

PowerShell
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?Buy Me A Coffee💖 Sponsor on GitHub