Find the Windows 10 product key using a scriptĪnother commonly used method to retrieve the product key from the registry is to use a Visual Basic script. Or you can use the following command: powershell '(Get-WmiObject -query 'select * from SoftwareLicensingService'). Wmic path softwarelicensingservice get OA3xOriginalProductKey
You can enter the following command in the command prompt in administrator mode or in PowerShell and it will show the OEM key built into your UEFI / BIOS. Here are the different ways to find the Windows product key. But if you are unsure of your product key, here is the guide to help you find it. We recently shared a guide on how to transfer your Windows 10 product key or license from one computer to another if you have purchased a commercial copy of the operating system.