How to Retrieve Your Windows Product Key Using PowerShell

 
 
  • Gérald Barré

If you need to reinstall Windows, having your product key is essential for activation. If you cannot locate it, you can retrieve it using PowerShell. This is especially useful if you have a digital license or purchased Windows online without saving 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?