# How to find and retrieve your Windows 10 product key

The Windows 10 product key is a dedicated 25-digit, letter, or number code which acts as a product key or code to unlock a software license and install the Windows operating system on your PC. The software can only be unlocked, installed, and used after it is unlocked.

---

### Note

A product key is usually subdivided into multiple parts comprised of a combination of various letters and numbers. Each **licensing key is unique** and can only be used with a single version of a purchased software. Through a special procedure, the licensing key is tested for its authenticity. The first ever licensing key was used as part of the Windows 95 operating system and was displayed on the installation disc cover. Windows justified the issue of a licensing code by saying that it was trying to avoid illegal usage of its licensed software.

---

Nowadays, you’ll either need a 25-digit code or a digital license to install Windows. Users without a digital license will need to retrieve their Windows 10 product key.

## When do you have to retrieve your Windows key?

With the launch of Windows 10, product keys have become less important because Microsoft launched **digital licenses** in 2016. Digital licenses allow for the simple installation of an operating system without requiring a bootable device. The operating system can be activated via your Microsoft account. Even when you’re reinstalling Windows 10, the system detects the license automatically.

You’ll get a digital license if:

- You purchased a new PC with a Windows operating system
- You upgrade Windows 7 or 8 to Windows 10
- You purchase an operating system via the Microsoft Store

If you’ve purchased a digital license, you may be able to view the Windows 10 license and get a product key afterwards.

In the following situations it may be necessary to retrieve the Windows 10 product key:

- You’ve purchased the disc-based Windows 10 version
- You’ve got a digital version of the operating system from an authorized dealer
- You have a volume licensing contract or MSDN subscription

In addition, to deinstall or reinstall another Windows version you might need a [Windows 7 product key](https://www.ionos.com/digitalguide/server/configuration/how-to-find-a-windows-7-product-key/ "How to find a Windows 7 product key") or [Windows 8 product key](https://www.ionos.com/digitalguide/server/configuration/finding-your-windows-8-product-key/ "Finding your Windows 8 product key"). However, the steps to retrieve product keys for older Windows versions may differ.

## Get your Windows 10 product key: step by step

If you need to find the product key for your Windows 10 installation, you’ve got a few options. The key can be retrieved via the **BIOS** i.e. the [bootloader](https://www.ionos.com/digitalguide/server/configuration/what-is-a-bootloader/) of your system or the command window. You can also use external software to retrieve your Windows 10 key.

### Find Windows 10 product key using third-party solutions

The easiest way to retrieve a Windows 10 product key is to use a special program. Because Microsoft doesn’t currently offer its own solutions, users will have to default to third-party providers such as Belarc which has developed a relevant tool. For example, the [Belarc Advisor](https://www.belarc.com/products_belarc_advisor "Belarc Advisor product page") can be used to read the licensing code from the Registry or BIOS. To find your licensing code, follow these steps:

1. **Download** the third-party software from the website by filling in your email details
2. **Install** the Belarc Advisor
3. **Start** the tool by running it
4. Once installed, the software will automatically generate the product key

### Windows 10 key retrieval using CMD

The command line or CMD can be used to gain information about a Windows installation key. However, you may only be able to view the **last five digits** of a Windows 10 code this way. Here’s how to do it:

Open the command line by searching for “CMD” or “command line.” Select the correct search result. Alternatively, launch a Run window and enter “cmd” to launch it.

[![Image: Windows 10 command line](https://www.ionos.com/digitalguide/fileadmin/_processed_/0/7/csm_Windows-10-command-line_4a0241b3be.webp "Windows 10 command line")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/Windows-10-command-line.png) Windows 10 command line       Type the command “**slmgr/dli**“ and hit “Enter.”

After a short while, the last five digits of the product key will be displayed in a pop-up window:

[![Image: Command line displaying the last five digits of a licensing key](https://www.ionos.com/digitalguide/fileadmin/_processed_/a/9/csm_Command-line-displaying-the-last-five-digits-of-a-licensing-key_c717ac4a82.webp "Command line displaying the last five digits of a licensing key")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/Command-line-displaying-the-last-five-digits-of-a-licensing-key.png) The command line displays the last five digits of a licensing key.       ###  Get your Windows 10 product key from BIOS

If your Windows key is stored in the **[BIOS](https://www.ionos.com/digitalguide/server/know-how/what-is-bios/ "What is BIOS")** – the boot software of your Windows PC – you can retrieve it quickly by using the PowerShell program.

Launch the Windows PowerShell by searching for “PowerShell” in the search bar. Select the program and open it. The Windows configuration framework will be launched:

[![Image: Using Windows PowerShell to get the Windows 10 product key](https://www.ionos.com/digitalguide/fileadmin/_processed_/f/e/csm_Using-Windows-PowerShell-to-get-the-Windows-10-product-key_f5e88efcec.webp "Using Windows PowerShell to get the Windows 10 product key")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/Using-Windows-PowerShell-to-get-the-Windows-10-product-key.png) Using Windows PowerShell to get the Windows 10 product key       Add the following commands to the PowerShell command line and confirm by hitting “Enter.”

```none
(Get-WmiObject -query &apos;select * from SoftwareLicensingService&apos;).OA3xOriginalProductKey
```

If your Windows key is in the BIOS, you can now view it:

[![Image: Display of Windows 10 keys in Windows PowerShell](https://www.ionos.com/digitalguide/fileadmin/_processed_/9/9/csm_Display-of-Windows-10-keys-in-Windows-PowerShell_ad4ac4b925.webp "Display of Windows 10 keys in Windows PowerShell")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/Display-of-Windows-10-keys-in-Windows-PowerShell.png) Your Windows 10 product key is displayed in Windows PowerShell.


This is a markdown version of: [https://www.ionos.com/digitalguide/server/configuration/retrieve-windows-10-product-key/](https://www.ionos.com/digitalguide/server/configuration/retrieve-windows-10-product-key/) for AI/LLM consumption.