


Next, click the “File” tab and select “Save As.” KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) The Windows Registry tip was initially posted by a user (whose account is no longer active) in the Microsoft forum.įirst, open Notepad by right-clicking anywhere on the desktop, hovering over “New,” and then selecting “Text Document” from the menu.Ĭopy and paste this code into Notepad: Set WshShell = CreateObject("WScript.Shell") (For example, this script in Microsoft’s TechNet gallery works differently, but also grabs output from “DigitalProductId” in the registry.) As of July 2020, we recommend you skip this section and use the above method instead. Update: This method is all over the web, but it doesn’t seem to return a real usable key on the latest version of Windows 10. Find Your Windows 10 Product Key Using a Windows Registry Method If you’d like a faster way of accessing your product key in the future, you can use the Windows Registry method instead. This way is quick, but this isn’t likely a code you’ll remember very easily. If you want the current key in use on your PC, NirSoft’s ProduKey is a good graphical tool for finding it. If you’ve installed Windows with a different key since then (or acquired a digital license), it will be different from the current key in use on your PC. In other words, it shows the original Windows key your computer came with. Note: This method displays the Windows product key stored in your computer’s BIOS or UEFI firmware. The 25-digit product key will then appear. Once open, copy and paste the following command and then hit the Enter key: wmic path softwarelicensingservice get OA3xOriginalProductKey If prompted, enter your Windows account password. Right-click it and select “Run As Administrator” from the window that appears. To do this, type “cmd” in the Windows search bar.Ĭommand Prompt will appear in the search results. To find your Windows 10 product key using the Command Prompt, you’ll need to open the command line application with administrative privileges. Find Your Windows 10 Product Key Using the Command Prompt
