Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


retrieve_windows_10_11_product_key_using_powershell

This is an old revision of the document!


Retrieve Windows 10 or 11 Product Key From the UEFI Using PowerShell

Open a Windows PowerShell (aka Terminal) with Administrative Privileges, and type or paste (right click) the following command next to your UserName> prompt, including the parenthesis () as part of the command:

PS C:\Users\UserName> (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey

XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

PS C:\Users\UserName>

Learn how to quickly find your Windows 10/11 product key using Command Prompt, PowerShell, or a third-party tool!

Open a command prompt with administrative privileges:

CMD Command:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Open PowerShell with administrative privileges:

PowerShell Command:

(Get-WmiObject -Query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
retrieve_windows_10_11_product_key_using_powershell.1762724960.txt.gz · Last modified: 2025/11/09 21:49 by wikiadmin