How to Recover a Windows 10 Product Key After a Complete Format

If you completely formatted the Windows drive, you may still be able to reactivate Windows 10 without recovering a 25-character key. On many PCs, activation is stored as a digital license tied to the hardware, while many OEM systems keep the original product key in UEFI firmware. Reinstalling the same Windows 10 edition on the same PC and connecting it to the internet is often enough.

Microsoft explains that Windows 10 activation can use either a digital license or a product key. If you are reinstalling Windows 10, start with the automatic activation route before trying to recover a key. See Microsoft's Windows activation guide.

Windows 10 Setup product key screen with the I don't have a product key option visible
During a reinstall, choose I don't have a product key if this PC was already activated with a digital license.

1. Reinstall the same Windows 10 edition and let it reactivate

  1. Install the same edition that was licensed before the format, such as Windows 10 Home or Windows 10 Pro.
  2. When Setup asks for a product key, select I don't have a product key.
  3. Finish installation, connect the PC to the internet, and wait a few minutes.
  4. Open Settings > Update & Security > Activation.

If the page says Windows is activated with a digital license, you are done. You do not need to extract or enter a key.

Windows 10 Activation settings showing Windows 10 Home activated with a digital license
The Activation page confirms whether Windows 10 has reactivated through a digital license.

Edition matters. A Windows 10 Home digital license will not activate a Windows 10 Pro installation, and vice versa. If activation fails after a clean install, confirm the installed edition before assuming the license was lost.

Windows 10 Pro Activation page with the Change product key dialog open
If you do have a valid 25-character key, enter it from Activation > Change product key.

2. Recover an OEM key stored in firmware

If the PC originally shipped with Windows, the manufacturer may have stored the original OEM key in the system firmware. A complete disk format does not erase UEFI firmware.

After Windows is installed, right-click Start, open Windows PowerShell (Admin), and run:

(Get-CimInstance -ClassName SoftwareLicensingService -Property OA3xOriginalProductKey).OA3xOriginalProductKey

If a firmware key exists, PowerShell should return a 25-character key. Keep it private. If the command returns nothing, that does not prove the PC is unlicensed; the machine may use only a digital license.

Administrator Windows PowerShell showing a Get-CimInstance command for the OA3xOriginalProductKey firmware value
PowerShell can query the OEM product key stored in firmware when one is present.

3. Check where the Windows license originally came from

If automatic activation does not work, use the purchase source to locate the correct key or license record. Microsoft's product-key guidance lists the supported locations.

Guide showing common Windows 10 product key locations including email, retail card, COA label, and PC firmware
Where you should look depends on whether Windows came from Microsoft, a retailer, or the PC manufacturer.
  • Microsoft online purchase: check the confirmation email and the Microsoft account used for the purchase.
  • Authorized retailer: check the confirmation email, digital locker, or the card or label inside the retail package.
  • PC that came with Windows: the key may be preinstalled in firmware, included with the packaging, or printed on a Certificate of Authenticity.
  • Free upgrade from Windows 7 or 8.1: Microsoft says these upgrades normally use a digital license rather than a new Windows 10 product key.

For a Microsoft purchase, sign in to Microsoft Store order history with the same account used to buy Windows. Look for the completed Windows order and any available product-key or install details.

Microsoft account Order history page showing a completed Windows 10 digital download purchase
Order history can help you confirm a Windows purchase made with a Microsoft account.

4. Use the Activation troubleshooter if Windows still will not activate

If the same PC was activated before formatting but Windows now reports an activation error, open Settings > Update & Security > Activation and select Troubleshoot. The option appears when Windows 10 is not activated.

Windows 10 Activation settings showing Windows is not activated and the Troubleshoot button
Use the built-in troubleshooter when Windows does not reactivate automatically.

If you also replaced major hardware, especially the motherboard, the license may no longer match the device. Microsoft documents a reactivation path for eligible digital licenses linked to a Microsoft account:

  1. Sign in as an administrator with the Microsoft account linked to the old digital license.
  2. On the Activation page, select Troubleshoot.
  3. Choose I changed hardware on this device recently.
  4. Select the current device, check This is the device I'm using right now, and select Activate.

See Microsoft's hardware-change reactivation instructions for the full process.

Windows 10 Activation Troubleshooter with a device selected for digital license reactivation
The Activation troubleshooter can reconnect an eligible digital license after a significant hardware change.

If you still cannot recover or activate Windows 10

Check for an edition mismatch first. Then contact the PC manufacturer for an OEM license issue, the retailer for a lost retail key, or Microsoft Support for a Microsoft purchase or activation error. Avoid random key-finder websites and never post a product key publicly.

Support note: Microsoft ended standard Windows 10 support on October 14, 2025. Windows 10 can still run, but regular security support has ended unless the device is covered by an eligible Extended Security Updates option. Microsoft recommends moving to Windows 11 on compatible hardware. See the Windows 10 end-of-support notice.

Leave a Comment

How to Schedule a Wallpaper Change in Windows 10

How to Schedule a Wallpaper Change in Windows 10

Use Windows 10’s built-in slideshow for interval rotation or schedule an exact daily wallpaper change with Task Scheduler and a short PowerShell script.

How to Change the New Message Notification Sound in Windows 10

How to Change the New Message Notification Sound in Windows 10

Choose a built-in alert tone or WAV file for Windows 10 message notifications, test the change, and troubleshoot apps that keep playing another sound.

How to Split the Screen Horizontally on Windows 10

How to Split the Screen Horizontally on Windows 10

Arrange Windows 10 apps in top-and-bottom rows with the taskbar’s Show windows stacked command, or create a reusable two-zone layout with PowerToys FancyZones.

How to Move Your Cursor Between Different-Resolution Monitors in Windows 10

How to Move Your Cursor Between Different-Resolution Monitors in Windows 10

Keep each display at its recommended resolution, arrange Windows 10 monitors accurately, and use MouseUnSnag to cross mismatched edges and sticky corners.

How to Check a Wi-Fi Network’s Security Type on Windows 10

How to Check a Wi-Fi Network’s Security Type on Windows 10

Find whether your connected Wi-Fi uses WPA2, WPA3, or an older security mode in Windows 10 with Settings, Command Prompt, or Control Panel.

How to Automatically Lock Windows 10 After Inactivity

How to Automatically Lock Windows 10 After Inactivity

Automatically lock Windows 10 after inactivity with a screen saver timer and sign-in prompt, then check how sleep settings affect the result.

How to Add a Cursor Highlighter on Windows 10

How to Add a Cursor Highlighter on Windows 10

Add a persistent colored ring around your Windows 10 mouse pointer with PenAttention, or use built-in pointer tools and PowerToys for temporary highlights.

How to Pin the Game Bar CPU, GPU, and RAM Overlay on Top in Windows 10

How to Pin the Game Bar CPU, GPU, and RAM Overlay on Top in Windows 10

Keep the Xbox Game Bar Performance widget visible over other windows on Windows 10, with CPU, GPU, and RAM readings you can position and unpin.

How to Record Multiple Screens at Once on Windows 10 with OBS

How to Record Multiple Screens at Once on Windows 10 with OBS

Capture two or more Windows 10 displays in one OBS video. Add a Display Capture source for each monitor, fit the canvas, and test the layout.

How to Generate a GUID in PowerShell on Windows 10

How to Generate a GUID in PowerShell on Windows 10

Create a GUID on Windows 10 with [guid]::NewGuid() or New-Guid, reuse it in a script, and learn when to look up an existing identifier.