Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


retrieve_windows_10_11_product_key_using_powershell

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

Third Party Tools.

Download and install ShowKeyPlus

https://apps.microsoft.com/detail/9pkvzcprx9nv?hl=en-US&gl=US

retrieve_windows_10_11_product_key_using_powershell.txt · Last modified: 2025/11/09 21:52 by wikiadmin