Quick answer: You can find your Windows 11 product key using Command Prompt, PowerShell, Registry Editor, or a dedicated tool like Product Key Recovery Tool. The method that works depends on whether your activation is a digital license tied to your Microsoft account or a traditional 25-character product key.
In This Guide
Step 1: Determine Your Activation Type First
Windows 11 uses two completely different activation methods. Knowing which one you have tells you whether you even need to find a product key.
Digital License (OEM / Upgrade)
Tied to your hardware and Microsoft account. Windows reactivates automatically after reinstall — no product key needed.
Common on: pre-built PCs, free upgrades from Windows 10
Product Key
A 25-character code (XXXXX-XXXXX-XXXXX-XXXXX-XXXXX). Must be saved before reinstalling.
Common on: retail boxed copies, volume licensing
How to check your activation type:
- Press Win + I to open Settings
- Go to System → Activation
- Look under "Activation state"
- If it says "Windows is activated with a digital license linked to your Microsoft account" — you have a digital license. You're safe to reinstall without saving a key.
- If it shows a product key or says "Windows is activated" without mentioning digital license — save your key using one of the methods below.
Method 1: Command Prompt (30 seconds)
This is the fastest method for most users. It reads the key stored in the Windows registry.
Steps:
- Press Win + S, type cmd
- Right-click Command Prompt → Run as administrator
- Type this command and press Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
If a product key is stored, it will appear as a 25-character code. If the output is blank, your PC uses a digital license — see the PowerShell method below for more detail.
Blank Output?
A blank result usually means your Windows uses a digital license embedded in UEFI. The key is not stored as a readable registry value. Try the PowerShell method for the full activation status.
Method 2: PowerShell (Most Reliable)
Steps:
- Press Win + X → click Windows PowerShell (Admin) or Terminal (Admin)
- Paste this command and press Enter:
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
This reads the OEM key embedded by the manufacturer at the factory. This is the most reliable way to retrieve the original key on retail and OEM machines.
Method 3: Registry Editor
Windows stores partial key information in the registry. Note that this method shows an encoded version, not always the full readable key.
Steps:
- Press Win + R, type
regedit, press Enter - Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
- Look for the DigitalProductId value — this is an encoded binary version of your key
- For a human-readable key, use the PowerShell or tool methods instead
Method 4: Product Key Recovery Tool (Recommended)
PC Trek's Product Key Recovery Tool reads all activation data in one scan — the registry key, OEM embedded key, and software license keys for installed applications. It shows exactly what type of activation you have and exports everything to a backup file.
Product Key Recovery Tool
Scans Windows registry, UEFI/BIOS, and software licenses. Shows your Windows 11 key or confirms digital license status — one click, no command line.
- ✓ Reads Windows 11 OEM, retail, and volume keys
- ✓ Also recovers Office, Adobe, and 10,000+ software keys
- ✓ Works offline — no internet needed
- ✓ Exports to TXT/CSV/HTML for safe backup
✓ Free trial shows your Windows key ✓ No registration ✓ 100% local
OEM Keys: Embedded in BIOS/UEFI
Most modern PCs (HP, Dell, Lenovo, ASUS, etc.) have the Windows product key embedded directly in the UEFI firmware — this is called an OA3 (OEM Activation 3.0) key. When you reinstall Windows from a Microsoft ISO, Setup automatically reads this key from your UEFI and activates Windows without any input from you.
What this means practically
If you bought a PC with Windows pre-installed from a manufacturer, your activation is almost certainly automatic. Download a Windows 11 ISO from Microsoft, install it, and it will activate on its own using the UEFI-embedded key. You don't need to retrieve or enter anything.
What to Do With Your Key Before Reinstalling
If you do have a traditional product key (retail purchase, volume license, or older OEM), take these steps before formatting:
- Write it down or copy it to a text file saved on a USB drive or cloud storage
- Also export your software keys — Windows Product Key Recovery Tool finds all installed software license keys in one scan, not just Windows
- Note your Windows edition (Home, Pro, Enterprise) — the key only works with the matching edition
- Verify the key works — the free trial of Product Key Recovery Tool confirms the key is valid before you format
Frequently Asked Questions
Summary
Before doing anything else, check Settings → System → Activation to determine whether you have a digital license or a product key. If it's a digital license, just sign into your Microsoft account during reinstall and you're done. If you have a traditional product key, use CMD, PowerShell, or Product Key Recovery Tool to find and save it before formatting.
Download Product Key Recovery Tool — Free Trial