Finding your Windows 10 license key is often necessary for a clean reinstall, verifying your purchase, or setting up a new machine. While the operating system usually handles activation automatically, there are specific moments when you need the actual 25-character code. This guide provides several reliable methods to locate your product key without relying on third-party software.
Understanding Digital License Activation
Before diving into retrieval methods, it is important to understand how modern Windows 10 activation works. For upgrades from Windows 7 or 8.1, or a fresh install using the Media Creation Tool, Microsoft often ties the license to your hardware via a digital license. This means the key is stored on Microsoft’s servers and linked to your PC, eliminating the need to manually enter characters. If your device runs Windows 10 and was activated correctly, you likely do not need the key at all.
Method 1: Using PowerShell for Retrieval
The most direct way to view the key installed on your current system is through Windows PowerShell. This method queries the registry where the key is stored post-activation. Follow these steps to execute the command:
Right-click the Start button and select Windows PowerShell (Admin).
Type the command: (Get-WmiObject -query "select * from SoftwareLicensingService").OA3xOriginalProductKey" .
Press Enter. If a key appears, it is the original key used for your installation.
Method 2: The Command Prompt Alternative
If you prefer the classic Command Prompt, a Visual Basic script can extract the key from the system registry. This process involves creating a temporary file to decode the data. Here is how to do it:
Open Notepad and paste the following code: Set WshShell = CreateObject("WScript.Shell") .
Add the line: MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) .
Save the file as ConvertKey.vbs .
Double-click the file, and a message box will display your product key.
Locating the Key on Hardware and Packaging
If the digital methods fail or you are working on a new device, the key might be physically present. Retail copies of Windows 10 come with a card attached to the box. This card is usually located on the back of the retail package. Furthermore, on devices purchased from OEMs like Dell or HP, the key is often printed on a sticker affixed to the underside of the laptop chassis or the back of the desktop case. This sticker is part of the BIOS-based activation system.