
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Set WshShell = CreateObject("WScript.Shell") When you run the file, it’ll show a prompt window with the product key. Just copy and past the script into Notepad and save the file with. Find Windows 10 product key using a scriptĪnother commonly used method to retrieve the product key from registry is by using a Visual Basic script. Or you can use the following command: powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey" 2. Wmic path softwarelicensingservice get OA3xOriginalProductKey You can enter the following command into Command Prompt in admin mode or to PowerShell and it will display the OEM key embedded into your UEFI/BIOS. Here are the different ways you can find Windows product key. But if you are unsure what your product key is, here is the guide to help you find it.

We recently shared a guide on how you can transfer your Windows 10 product key or license from one computer to another if you have purchased a retail copy of the operating system.
