How to Find Your Windows Product Key Before Reinstalling

📅 May 13, 2025⏱️ 5 min read✍️ SterJo Software📂 Product Keys

The old days of finding your Windows key on a sticker under the laptop are mostly gone. On most modern PCs, the product key is embedded in the UEFI firmware or stored in the Windows registry — invisible unless you know where to look. This guide shows you three ways to retrieve it in under a minute, before you wipe your drive.

Whether you're doing a clean reinstall, swapping to a new hard drive, or just want a permanent record of your license, all three methods below work on Windows 10 and Windows 11 — including OEM, retail, and volume license installations.

Quick Answer: Find Your Key in 10 Seconds

Command Prompt method: Open CMD and run:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Or use SterJo Key Finder to retrieve Windows, Office, and all other software keys in one click — no commands needed.

Method 1: Find Windows Product Key Using Command Prompt

This is the fastest method and works on all versions of Windows 10 and 11.

Step 1: Open Command Prompt as Administrator

  • Press Windows + R, type cmd, then press Ctrl + Shift + Enter to run as administrator.
  • Or search "Command Prompt" in the Start menu, right-click, and select Run as administrator.

Step 2: Run the Product Key Command

Type or paste the following command and press Enter:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Your 25-character product key will appear below the command, in the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

Step 3: Save the Key

Copy the key and paste it into a text file. Save that file to a USB drive or another device — not the drive you're about to reinstall.

Method 2: Find Windows Product Key Using PowerShell

PowerShell can retrieve the product key stored in the registry using a slightly more detailed script. This method is useful if the wmic command returns a blank result.

Step 1: Open PowerShell as Administrator

  • Press Windows + X and select Windows PowerShell (Admin) or Terminal (Admin).

Step 2: Run the Script

Paste the following command and press Enter:

(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

If a key is stored in the firmware, it will be shown. Copy and save it immediately.

Alternative PowerShell Script for Registry Key

For keys stored in the Windows registry (common on retail installations), use:

$regPath = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' $key = (Get-ItemProperty $regPath).DigitalProductId # Decode key from binary $keyOffset = 52 $isWin8 = [int]($key[66] / 6) -band 1 $key[66] = ($key[66] -band 0xF7) -bor (($isWin8 -band 2) * 4) $chars = 'BCDFGHJKMPQRTVWXY2346789' $result = '' for ($i = 24; $i -ge 0; $i--) { $cur = 0 for ($j = 14; $j -ge 0; $j--) { $cur = ($cur * 256) -bxor $key[$keyOffset + $j] $key[$keyOffset + $j] = [int]($cur / 24) $cur = $cur % 24 } $result = $chars[$cur] + $result if (($i % 5 -eq 0) -and ($i -ne 0)) { $result = '-' + $result } } $result

Method 3: SterJo Key Finder (Easiest — Finds All Software Keys)

If you want to retrieve your Windows key and your Office key, Adobe license, and any other installed software licenses at the same time, SterJo Key Finder does everything in one step — no commands, no scripts.

🔑 SterJo Key Finder

Free • Portable • Finds 10,000+ software product keys

  • Instantly retrieves Windows 7, 8, 10, and 11 product keys
  • Also finds Microsoft Office, Adobe, and hundreds of other software keys
  • No installation required — run directly from a USB drive
  • Export the full key list to a text file with one click
  • Works on all Windows versions from XP to 11

Download SterJo Key Finder (Free) →

How to Use SterJo Key Finder

  1. Download SterJo Key Finder and run it — no installation needed.
  2. All detected product keys are displayed immediately, grouped by software.
  3. Click File → Save to export the complete list to a text file.
  4. Save the file to a USB drive or external storage before reinstalling.

Method Comparison

MethodDifficultyFinds Office Keys Too?Export to File?
Command Prompt (wmic)Easy❌ Windows only❌ Manual copy
PowerShell scriptMedium❌ Windows only❌ Manual copy
SterJo Key FinderVery Easy✅ Yes — 10,000+ programs✅ One click

OEM vs Retail vs Digital License — Does It Matter for Reinstalling?

Understanding your license type tells you whether you actually need to save your product key at all.

OEM License (most laptops and pre-built PCs)

On most PCs bought from manufacturers like Dell, HP, Lenovo, and Asus, the Windows license is embedded in the UEFI firmware chip on the motherboard. When you reinstall Windows, it activates automatically — no key entry needed. The wmic command will retrieve this key, but you often don't need it unless you're replacing the motherboard.

Retail License (boxed copy or key bought separately)

Retail licenses are tied to a Microsoft account once activated online. If you sign into the same Microsoft account after reinstalling, Windows re-activates automatically. If you're not using a Microsoft account, you'll need to enter the 25-character key manually — so backing it up is essential.

Digital License (Windows 10/11 free upgrade)

If you upgraded from Windows 7 or 8 to Windows 10 for free, or bought a new PC with Windows 10/11 pre-installed, you likely have a digital license. These are linked to your Microsoft account and reactivate automatically on the same hardware after reinstalling. No key needed — but sign in with the same Microsoft account.

What Else Should You Back Up Before Reinstalling?

Your Windows product key is just one piece of what you'll lose in a reinstall. Before you wipe the drive, also make sure you've saved:

  • Browser passwords — use SterJo Browser Passwords to export Chrome, Firefox, Edge, and Opera credentials
  • Wi-Fi passwords — use SterJo Wireless Passwords to export all saved wireless network keys
  • Email account passwords — use SterJo Mail Passwords to save Outlook and Thunderbird credentials
  • Windows Credential Manager entries — use SterJo Windows Credentials for network drive and Remote Desktop passwords
  • Office and other software keys — SterJo Key Finder handles all of these alongside your Windows key

📚 Related Guides

Passwords

Back Up All Passwords Before Reinstalling

Complete checklist covering every type of credential you need to save before a Windows reinstall.

Product Keys

Don't Lose Your Software: Backup Keys Before Reinstalling

A broader look at backing up all software license keys, not just Windows.

Frequently Asked Questions

The wmic command returns a blank result — does that mean I have no product key?

Not necessarily. A blank result usually means your Windows installation uses a digital license tied to your Microsoft account, or an OEM license embedded in the motherboard firmware. In both cases, Windows will reactivate automatically after reinstalling on the same hardware as long as you use the same Microsoft account. Use SterJo Key Finder to double-check — it reads from additional registry locations that the wmic command sometimes misses.

Can I use my Windows key on a different PC?

It depends on the license type. Retail licenses can be transferred to a new PC (deactivate on the old one first). OEM licenses are permanently tied to the original hardware and cannot be transferred. Digital upgrade licenses follow the same hardware restrictions as OEM licenses.

Does SterJo Key Finder also find Microsoft Office product keys?

Yes. SterJo Key Finder detects product keys for Microsoft Office (2007 through 2021*), Adobe products, and hundreds of other installed applications — all displayed in the same list alongside your Windows key. Export everything to a single text file before reinstalling.

*The license key for the marked software may not be recoverable.

I bought Windows from the Microsoft Store — where is my product key?

Purchases from the Microsoft Store are linked to your Microsoft account as digital licenses. You don't have a traditional 25-character product key — Windows activates automatically when you sign in with that account after reinstalling. Check your Microsoft account order history if you need confirmation of the purchase.

Will my Windows key work after a hardware upgrade?

Minor upgrades like adding RAM or swapping a hard drive usually don't affect activation. Replacing the motherboard can trigger a deactivation because Windows treats a new motherboard as a new PC. If this happens, use the Activation troubleshooter in Windows Settings to relink the license to your Microsoft account.

Is it safe to share my Windows product key?

No. A Windows product key can only be used to activate one installation at a time (for retail licenses). Sharing it risks someone else activating it, which would deactivate your copy. Keep your key private and store it only on personal, secure storage.

Save Your Key Now — It Takes 30 Seconds

Whatever license type you have, knowing your Windows product key before a reinstall removes all uncertainty. SterJo Key Finder retrieves it instantly along with every other software license on your machine, and exports everything to a text file you can keep permanently.

And while you're at it — run the full pre-reinstall checklist. Saving your Wi-Fi passwords, browser credentials, and email passwords takes another 10 minutes and saves hours of frustration afterwards.

Download SterJo Key Finder Free →

💡 Quick Tip

Keep SterJo Key Finder on a USB drive permanently. That way you can retrieve product keys from any Windows PC — even one that's about to be formatted — without needing internet access.