Windows Licensing Guide

How to Find Your
Product Key for Windows 10 & 11

A complete, step-by-step guide to retrieving your Windows license key using built-in tools — no third-party software required.

⊞ Windows 10 ⊞ Windows 11 ⌨ CMD & PowerShell 🔑 Registry 🛠 Free Tools

What Is a Windows Product Key and Why Do You Need It?

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.

ℹ️   Digital License vs. Product Key

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

Find Your Windows Product Key Using Command Prompt (CMD)

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.

Step-by-Step Instructions

  1. Press Win + R, type cmd, then press Enter to open the Command Prompt.
  2. Type or paste the command below and press Enter.
  3. Your product key will appear on the next line, displayed in full.
Command Prompt — wmicwmic path softwarelicensingservice get OA3xOriginalProductKey
⚠️   Note on WMIC Deprecation

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.

Alternative CMD Command

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.

Retrieve Your Windows 10 / 11 Product Key with PowerShell

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.

Quick One-Liner Method

PowerShell — one-liner(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

Full Decoding Script

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"
  1. Press Win + X and choose Windows PowerShell (Admin) or Terminal (Admin).
  2. Paste the script above and press Enter.
  3. The decoded product key will be printed on the last line.
✓   Safe and Built-in

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.

Find the Windows Product Key via the Windows Registry

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.

Navigating the Registry

  1. Press Win + R, type regedit, and press Enter. Accept the UAC prompt.
  2. In the address bar at the top, paste the following path and press Enter:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
  3. In the right-hand pane, locate the value named DigitalProductId.
  4. Double-click it to view the raw binary data (this is the encoded key).
⚠️   Do Not Edit the Registry

The 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.

Check Windows Activation Status in Settings

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.

Windows 11 — Activation Settings

  1. Open Settings (Win + I) → SystemActivation.
  2. Check the Activation state field. It should read "Active".
  3. If you see "Windows is activated with a digital license linked to your Microsoft account", your license is tied to your account — no key is needed.

Windows 10 — Activation Settings

  1. Open SettingsUpdate & SecurityActivation.
  2. Look for the activation status message beneath the Edition and Version information.
ℹ️   Link Your License to a 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.

Retrieve OEM Product Keys Embedded in BIOS / UEFI

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.

✦   Advantages

  • Survives full disk wipes — key stays in firmware
  • Windows auto-detects during clean install
  • No manual key entry required
  • Retrievable without booting Windows (via UEFI shell)

✦   Limitations

  • Tied to the original motherboard — not transferable
  • Only activates the edition it shipped with (Home/Pro)
  • May not appear if machine uses Digital License only
  • Requires admin rights to read via software

Find Your Windows Key Using Free Third-Party Tools

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.

Recommended Free Tools

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
🚫   Security Warning

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.

Method Comparison: Which Option Is Best for You?

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

Frequently Asked Questions About Windows Product Keys

Q Can I use my Windows 10 key to activate Windows 11?

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.

Q My CMD command returned a blank result. What should I do?

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.

Q Where was the product key printed on my old Windows 7 or 8 PC?

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.

Q Can I transfer a Windows 10/11 license to a new computer?

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.

Q Is it safe to share my Windows product key with others?

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.

Q Does Windows 11 still require a product key?

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.

📌   Key Takeaways

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.