A complete, step-by-step guide to retrieving your Windows license key using built-in tools — no third-party software required.
A Windows product key (also called a license key or activation key) is a 25-character alphanumeric code in the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. Microsoft uses it to verify that your copy of Windows 10 or Windows 11 is genuine and properly licensed.
You may need to locate your product key in several common situations: reinstalling Windows from scratch, transferring a license to a new PC, recovering after a hardware failure, or verifying your activation status.
Since Windows 10, Microsoft introduced Digital Licenses (also called Digital Entitlements) that are tied to your Microsoft account or hardware ID — not a 25-character key. If your PC came with Windows 10/11 pre-installed, it likely uses a Digital License embedded in the UEFI firmware. You may never need to manually enter a key.
| License Type | Where It's Stored | Transferable? |
|---|---|---|
| Retail (boxed / download) | Product packaging, email receipt | Yes — to another PC |
| OEM (pre-installed) | BIOS/UEFI chip | No — tied to motherboard |
| Volume License (corporate) | KMS/MAK server | Managed by IT dept. |
| Digital License | Microsoft servers + hardware ID | Via Microsoft account |
The fastest built-in method uses the Windows Management Instrumentation Command-line (WMIC) tool available in all editions of Windows 10 and Windows 11. This retrieves the OEM product key stored in your system's BIOS/UEFI or the registry.
cmd, then press Enter to open the Command Prompt.Command Prompt — wmicwmic path softwarelicensingservice get OA3xOriginalProductKey
WMIC has been deprecated in Windows 11 build 21H2 and later. If the command returns an empty result, use the PowerShell method (Method 2) instead — it works on all modern systems.
If the WMIC command returns nothing, try this registry-based alternative directly in CMD:
Command Prompt — reg queryreg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v DigitalProductId
Note that the output of the above command returns an encoded binary value — you'll need to decode it, which is best handled via PowerShell or a dedicated tool.
PowerShell offers a more robust and script-friendly way to extract your license key. It works reliably on both Windows 10 and Windows 11, including the latest 24H2 updates.
PowerShell — one-liner(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
If your key is stored in the registry as an encoded binary (common on OEM machines), use this PowerShell script to fully decode it:
PowerShell — decode registry key$map = "BCDFGHJKMPQRTVWXY2346789"
$value = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DigitalProductId
$key = ""
$start = 52
for ($i = 24; $i -ge 0; $i--) {
$current = 0
for ($j = 14; $j -ge 0; $j--) {
$current = $current * 256 -bxor $value[$j + $start]
$value[$j + $start] = [math]::Floor($current / 24)
$current = $current % 24
}
$key = $map[$current] + $key
if (($i % 5 -eq 0) -and ($i -ne 0)) { $key = "-" + $key }
}
Write-Host "Product Key: $key"
This method uses only built-in PowerShell cmdlets and reads the Windows Registry. No internet connection or external tools are needed, and your key never leaves your device.
The Windows Registry stores the encoded product key under a well-known path. You can navigate there manually using the built-in Registry Editor (regedit), although you'll only see the raw binary — decoding requires the PowerShell script above.
regedit, and press Enter. Accept the UAC prompt.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersionThe Registry Editor is a read-only research tool in this context. Do not modify any values. Accidental changes can cause system instability or prevent Windows from booting.
If you use a Digital License linked to your Microsoft account, you don't have a traditional 25-character key. Instead, you can verify your activation status directly in the Windows Settings app — and the license transfers automatically when you sign into a new PC with the same Microsoft account.
To safeguard a Digital License before hardware changes, go to Settings → Activation → Add a Microsoft account. This allows you to reactivate Windows after replacing your motherboard by logging in at account.microsoft.com/devices.
Most laptops and pre-built desktops sold with Windows 10 or 11 since 2012 store the OEM product key directly in the UEFI firmware. This key is automatically read by Windows Setup during installation — you never need to type it manually.
To read the UEFI-embedded key, use the following PowerShell command with administrator privileges:
PowerShell — read ACPI MSDM table(Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey
On machines where the key is stored in the ACPI MSDM (Microsoft Data Management) table, this command retrieves it directly without any decoding step. If the result is blank, your machine uses a Digital License instead of a traditional key.
For users who prefer a graphical interface, several free and open-source tools can display your Windows product key with a single click. These tools read the same registry and BIOS data as the methods above but present it in an easy-to-read format.
| Tool | Platform | Installer Required? | Key Feature |
|---|---|---|---|
| ProduKey (NirSoft) | Windows 10 / 11 | No — portable .exe | Displays all Microsoft product keys |
| ShowKeyPlus | Windows 10 / 11 | Microsoft Store app | Shows installed & OEM keys separately |
| Belarc Advisor | Windows 10 / 11 | Yes | Full system audit including all licenses |
| Magical Jelly Bean Keyfinder | Windows 10 / 11 | No — portable | Keys for Windows + installed software |
Only download key-finder tools from their official websites. Many search results lead to unofficial mirrors bundled with adware or malware. For ProduKey, use only nirsoft.net; for ShowKeyPlus, use only the Microsoft Store.
Each method has its own strengths. Use the table below to quickly identify the right approach based on your situation.
| Method | Difficulty | Works on Win 11? | Best For |
|---|---|---|---|
| CMD / WMIC | Easy | Partially (deprecated) | Quick check on older systems |
| PowerShell one-liner | Easy | ✓ Yes | Most users — fastest reliable method |
| PowerShell decode script | Medium | ✓ Yes | OEM machines with encoded registry keys |
| Registry Editor | Medium | ✓ Yes | Advanced users; raw binary inspection |
| Windows Settings | Easy | ✓ Yes | Checking Digital License status |
| BIOS / UEFI method | Easy | ✓ Yes | Laptops and OEM desktops |
| Third-party tools | Easy | ✓ Yes | Non-technical users who prefer a GUI |
Yes — a valid Windows 10 product key can activate Windows 11, provided it is for the same edition (e.g., Home activates Home, Pro activates Pro). Microsoft's free upgrade path also preserves your existing Digital License and transfers it to Windows 11 automatically.
A blank result usually means your Windows uses a Digital License rather than a stored 25-character key. Check Settings → Activation to confirm. If it shows "Active" there, you don't need a product key — your license is tied to your hardware or Microsoft account.
On older OEM machines, the product key sticker was affixed to the bottom of the laptop or on the side/back of a desktop tower. On retail boxes, it was inside the packaging on a card. If the sticker has worn off, use the registry-based methods described in this guide — the key is often still stored in firmware even on older machines.
Retail licenses are transferable — deactivate on the old machine and activate on the new one. OEM licenses are permanently tied to the original motherboard and cannot be legally transferred. Digital Licenses linked to a Microsoft account can be moved to a new PC by following the re-activation steps at account.microsoft.com/devices.
No. You should never share your product key publicly or with untrusted parties. A product key is a single-use license credential — if someone else activates Windows with your key before you reinstall, you may lose access to activation. Treat it like a password.
Windows 11 can technically be installed and used without entering a product key — but without activation, some personalization features are disabled and a watermark appears on the desktop. For full functionality, activation via a valid product key or an existing Digital License linked to your Microsoft account is required.
For most users, the PowerShell one-liner is the fastest and most reliable way to find a Windows 10 or Windows 11 product key. If your machine shipped with Windows pre-installed, the key is likely embedded in the UEFI firmware and retrievable in seconds. If you're running a Digital License, no key is needed — just sign in to your Microsoft account. Always store your key in a secure location for future reinstalls, and never share it publicly.