---
title: Windows 11 product key retrieval & verification
title_en: Windows 11 product key retrieval & verification
description: Multiple ways to retrieve the Windows 11 product key from the registry, CMD, and PowerShell, plus using slmgr to verify key type and activation status.
sidebar_label: Windows 11 product key retrieval
---

# Windows 11 product key retrieval & verification

## 1. Retrieving the product key

### Method 1: registry lookup (recommended)

Works for non-OEM machines, including digital-license activations.

1. Press `Win + R` to open the Run dialog
2. Type `regedit` and press Enter to open the Registry Editor
3. Navigate to:

   ```
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
   ```

4. In the right pane, find **`BackupProductKeyDefault`**
5. Its value is your Windows 11 product key

> **Source:** [Reddit r/techsupport — How to retrieve the product from win 11](https://www.reddit.com/r/techsupport/comments/1elpma2/how_to_retrieve_the_product_from_win_11/)
>
> **Note:** community reports confirm this also works for digital-license activations (where you only have an email tied to the license, no key was ever shown). If `BackupProductKeyDefault` is missing, your Windows is probably activated through a different mechanism.

### Method 2: Command Prompt (CMD)

Open CMD as **Administrator** and run:

```cmd
wmic path softwarelicensingservice get OA3xOriginalProductKey
```

> **Note:** this reads the OEM key embedded in BIOS/UEFI. If your machine isn't a brand-preinstalled OEM box, the output will be blank — that's normal.

### Method 3: PowerShell

Open PowerShell as **Administrator** and run:

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

> **Note:** same caveat as Method 2 — only works when an OEM key is burned into BIOS.

### Method 4: check purchase records

- **Bought from the Microsoft Store:** sign in to your [Microsoft account](https://account.microsoft.com) and check Order history
- **Bought elsewhere:** dig out the original confirmation email or the retailer's digital locker

### Method 5: digital license (no key needed)

If your Windows 11 was a free upgrade from Windows 10 / 8.1 / 7, it uses a **digital license** — the entitlement is bound to your Microsoft account and hardware ID, not a product key. To reinstall:

1. During setup, choose "I don't have a product key" to skip
2. Pick the same edition you originally had (Home / Pro)
3. After install, connect to the internet and sign in with the same Microsoft account
4. Windows will detect the hardware and activate automatically

---

## 2. Verifying the product key

### Check current activation status

Open CMD as Administrator and run:

```cmd
slmgr /dli
```

Look at two things:

- **Description:** shows the key type (Retail / OEM / MAK / KMS)
- **License Status:** `Licensed` means the key is valid

Then run:

```cmd
slmgr /xpr
```

If it says **"The machine is permanently activated"**, the key is genuine and activation succeeded.

### Verify a new key

If you have a key and want to confirm it works:

```cmd
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /ato
```

- `/ipk`: install product key
- `/ato`: attempt online activation

Successful activation = valid key.

### Key types

| Type | Description | Typical user |
|------|------|----------|
| **Retail** | Retail copy, transferable between machines | Individual consumers who bought a license |
| **OEM** | Bound to the hardware, non-transferable | Pre-installed on brand-name PCs |
| **MAK** | Multiple Activation Key | Enterprise / organizations |
| **KMS** | Key Management Service | Enterprise / organizations |

> For a regular personal user, the key should be **Retail** or **OEM**. MAK or KMS on a personal machine usually means the key has a sketchy origin.

---

## 3. FAQ

### Q: `wmic` returns blank?

No OEM key in BIOS — normal for self-built PCs or self-installed Windows. Use **Method 1 (registry)** instead.

### Q: Windows won't activate after replacing the motherboard?

OEM keys are bound to the original hardware and can't be moved. Retail keys can be reactivated:

1. Go to **Settings → System → Activation → Troubleshoot**
2. Pick "I changed hardware on this device recently"
3. Sign in with the linked Microsoft account and pick the matching device to complete activation

### Q: The value of `BackupProductKeyDefault` doesn't match the key I originally had?

Known and normal. The key stored in the registry may be an internal activation key, not necessarily identical to the one you originally bought. As long as `slmgr /xpr` confirms permanent activation, your license is fine.
