How to check windows key

Download Article

Find your Windows product key using the Command Prompt, PowerShell, or the Windows Registry

Download Article

  • Finding your Windows Product Key
  • |

  • Using Command Prompt
  • |

  • Using PowerShell
  • |

  • Using the Registry
  • |

  • Video
  • |

  • Expert Q&A
  • |

  • Tips
  • |

  • Warnings

Do you need to find your Windows product key? The Windows product key is necessary if you want to install Windows on a different computer or reinstall it on your the same computer. You can find the Windows product key using your computer’s Command Prompt, PowerShell program, or within the Windows Registry. This wikiHow article teaches you how to find your Windows product key so that you can activate Windows.[1]

Things You Should Know

  • You can find your Windows product key using the Command Prompt, Powershell, or the Windows Registry.
  • If you purchased Windows from a licensed retailer, you can find your Windows key in the box that it came in.
  • If you bought a digital version of Windows or an upgrade online or from the Microsoft Store, you should receive your product key in a confirmation email.
  1. Step 1 Find your product key if your PC comes with Windows pre-installed.

    If your PC comes with Windows pre-installed, you do not need to use your product key to activate Windows. It’s already running. If you want to save a backup copy, you can do so, using the Command Prompt, PowerShell, or your Windows Registry. You can also find your Windows product key within the packaging your PC came with or within the Certificate of Authenticity.

    • Most newer computers do not have the Windows product key printed on a sticker on the bottom of the computer like they used to. However, you should be able to find the Windows product key within the package your computer came in.
  2. Step 2 Find your product key if you bought a physical copy of Windows.

    If you bought a physical copy of Windows 10 or 11 from an authorized retailer, you can find your Windows product key within the box that Windows came in.

    Advertisement

  3. Step 3 Find your product key if you bought a digital copy of Windows.

    If you bought a digital copy of Windows online or through the Microsoft Store, either as a new copy or an upgrade, you should have received a confirmation email. Your Windows product key should be in the confirmation email.

  4. Step 4 Find your Windows product key if you have a volume licensing agreement or MSDN subscription.

    If you have a volume licensing agreement or MSDN subscription, you can find your Windows product key in the web portal for your program.[2]

  5. Advertisement

  1. Step 1 Click the Windows...

    Click the Windows Start menu

    Windows Start

    . It’s the icon with the Windows logo in the taskbar at the bottom of the screen. You can do this in Windows 10 or 11.

  2. Step 2 Type CMD.

    This displays the Command Prompt in the Windows Start menu.

  3. Step 3 Open the Command...

    Open the Command Prompt as an administrator

    Windows cmd

    . To open the Command Prompt as an administrator, right-click the Command Prompt and click Run as Administrator.

    • You must be signed in to Windows with an administrative account in order to open the Command Prompt as an administrator.
  4. Step 4 Type the command to display your product key.

    To display your product key, type the following command and press Enter.[3]

    • wmic path softwareLicensingService get OA3xOriginalProductKey
  5. Step 5 Note the product key.

    Your product key is the 25-letter key displayed under the text that says «OA3xOriginalProductKey.»

  6. Step 6 Save a copy of the product key.

    You can either take a screenshot of the results or write down the key to ensure you have access to it if needed.

  7. Advertisement

  1. Step 1 Right-click the Windows Start menu icon.

    It’s the icon that resembles the Windows logo in the taskbar at the bottom of the screen. Right-clicking the Windows Start menu displays a context menu. This will work on both Windows 10 and 11.

  2. Step 2 Click Windows PowerShell (Admin).

    This will open PowerShell as an administrator.

    • You must be logged into Windows with an administrative account in order run PowerShell as an administrator.
  3. Step 3 Enter the command to display the product key and press ↵ Enter.

    The command is as follows:[4]

    • powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"
  4. Step 4 Note your product key.

    You should see the product key appear directly below the command that you entered; this is your product key.

    • The product key will be 25 characters long. If you don’t see the product key appear immediately, enter the code a second time and press Enter.[5]
  5. Step 5 Save a copy of the product key.

    You can either take a screenshot of the results or write down the key to ensure you have access to it if needed.

  6. Advertisement

  1. Step 1 Press ⊞ Win+R to open Run.

    Pressing the Windows key and R at the same time will open the Run program. This will work on both Windows 10 and 11.

  2. Step 2 Type regedit and press ↵ Enter.

    This will open the Registry Editor, where you can find the Windows Product Key.

    • Warning: Editing files within the Registry Editor can cause permanent damage to your Windows operating system. Do not edit or move any files unless you know what you are doing.
  3. Step 3 Navigate to the SoftwareProtectionPlatform folder.

    You will see a series of folders listed in the panel to the left. Open the following folders to navigate to the «SoftwareProtectionPlatform» folder.

    • Open the HKEY_LOCAL_MACHINE folder.
    • Open the SOFTWARE folder.
    • Open the Microsof folder.
    • Open the Windows NT folder
    • Open the CurrentVersion folder.
    • Open the SoftwareProtectionPlatform folder.
  4. Step 4 Click the SoftwareProtectionPlatform folder.

    This displays all the files within this folder in the large panel on the right.

  5. Step 5 Double-click the BackupProductKeyDefault file.

    This displays your 25-digit product key in the field that says «Value Data.» You can also read the product key under «Data» next to the BackupProductKeyDefault file.[6]

  6. Step 6 Save a copy of the product key.

    You can either take a screenshot of the results or write down the key to ensure you have access to it if needed.

  7. Advertisement

Add New Question

  • Question

    How do you check your Windows Product Key?

    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.

    Computer & Tech Specialist

    Expert Answer

    The Product Key is encoded in your computer, in BIOS. To access it, you will have to use a third-party software, like Produkey or Show Key Plus.

  • Question

    What is a Windows product key and how do I find it?

    Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time.

    Computer Specialist

    Expert Answer

    A Windows product key is a 25-character key that tells Microsoft that your Windows operating system is authentic. The way you find it will depend on how you received the product key initially, but if you can’t find it, I recommend Magical Jelly Bean, which is a product key finder.

  • Question

    What is a Windows Product Key? How do I get one?

    Windows Product Key is a unique key for each customer. This key is used to activate your Windows operating system. You receive the Product Key when you purchase a Windows OS, or you can buy it separately from Microsoft.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

  • You can also use the free program Magical Jelly Bean to help you retrieve your Windows product key.[7]

Thanks for submitting a tip for review!

Advertisement

  • Using someone else’s product key to activate your own Windows software is against Microsoft’s terms of use.

Advertisement

About This Article

Article SummaryX

1. Open PowerShell.
2. Type «(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey» and press Enter.
3. Note your product key.

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,297,992 times.

Is this article up to date?

Applies ToWindows 11 Windows 10 Windows 8.1 Windows 7 Панель мониторинга учетной записи Майкрософт

Ключ продукта Windows представляет собой 25-значный код, используемый для активации Windows. Он выглядит следующим образом:

  • КЛЮЧ ПРОДУКТА: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Найдите ключ продукта для Windows 10 или Windows 11

В зависимости от того, как вы получили копию Windows 10 или Windows 11, для ее активации потребуется 25-значный ключ продукта или цифровая лицензия. Цифровая лицензия — это метод активации в Windows 10 и Windows 11, который не требует ввода ключа продукта. Если у вас нет одного из этих средств, активацию устройства выполнить не удастся.

Расположение ключа продукта зависит от того, как вы приобрели копию Windows.

Выберите любой из следующих вариантов просмотра дополнительных сведений.

Ключ продукта предварительно установлен на вашем компьютере, указан на его упаковке или сертификате подлинности, прикрепленном к компьютеру. Для получения дополнительных сведений обратитесь к производителю оборудования. Изображения ключей продуктов и наклеек сертификата подлинности см. в статье Как проверить подлинность оборудования.

Ключ продукта указан на наклейке или на карточке внутри коробки, в которой поставляется Windows. Для получения дополнительных сведений обратитесь к розничному продавцу, который продал вам Windows 10 или Windows 11. Как проверить подлинность программного обеспечения.

Найдите ключ продукта в письме с подтверждением, полученном после покупки Windows 10 или Windows 11 в цифровом шкафчике, доступном на веб-сайте розничного продавца.

Ключ продукта будет указан в сообщении электронной почты, которое вы получите для подтверждения покупки вашей цифровой копии Windows. Корпорация Майкрософт хранит записи только тех ключей продуктов, которые были приобретены в интернет-магазине Майкрософт. Чтобы узнать, где вы приобрели свою копию ОС, посетите раздел Журнал заказов. в своей учетной записи Майкрософт.

Если вы бесплатно обновились до Windows 11 с Windows 10 или до Windows 10 бесплатно с Windows 7 или Windows 8.1, у вас должна быть цифровая лицензия вместо ключа продукта.

Если вы приобрели Windows 10 или Windows 11 Pro обновление в приложении Microsoft Store, вы получите цифровую лицензию вместо ключа продукта в письме с подтверждением, отправленном для подтверждения покупки. Этот адрес электронной почты (MSA) будет содержать цифровую лицензию. Вы можете использовать цифровую лицензию для активации.

Дополнительные сведения о цифровых лицензиях и ключах продуктов в Windows 10 и Windows 11 см. в разделе «Методы активации» статьи Активация Windows.

Поиск ключа продукта для Windows 7 или Windows 8.1

При удалении и переустановке Windows 7 или Windows 8.1 обычно требуется ключ продукта. Как правило, если вы приобрели физическую копию Windows, ключ продукта должен быть указан на наклейке или на карточке внутри упаковки, в которой находилась копия Windows. Если операционная система Windows была предустановлена на компьютере, то ключ продукта должен быть на наклейке, прикрепленной к этому устройству. Если вы потеряли ключ продукта или не можете его найти, обратитесь к производителю. Сведения о том, что ключ продукта является подлинным, см. в статьях Как проверить подлинность программного обеспечения и Как проверить подлинность оборудования.

Связанные ссылки

Сведения о том, является ли ваша копия Windows подлинным программным обеспечением Майкрософт, см. на соответствующей странице.

Нужна дополнительная помощь?

Нужны дополнительные параметры?

Изучите преимущества подписки, просмотрите учебные курсы, узнайте, как защитить свое устройство и т. д.

Are you curious to know how to check your Windows license key using the Command Prompt? It’s a useful trick that can come in handy if you need to retrieve your license key for various reasons. Whether you’ve lost your key or simply want to verify its authenticity, the Command Prompt provides a straightforward method to uncover this information.

By accessing the Command Prompt, which is a powerful command-line tool in Windows, you can quickly check your license key. This method works for all versions of Windows, including Windows 10, Windows 8, and Windows 7. With just a few simple steps, you’ll have your license key in no time, ensuring you can activate or troubleshoot your Windows operating system with ease.

If you need to check your Windows license key using Command Prompt, follow these steps:

  1. Press the Windows key + R on your keyboard to open the Run dialog box.
  2. Type «cmd» in the Run dialog box and press Enter to open Command Prompt.
  3. In the Command Prompt window, type «wmic path softwarelicensingservice get OA3xOriginalProductKey» and press Enter.
  4. Your Windows license key will be displayed in the Command Prompt window.

How To Check Windows License Key In Command Prompt

Why Checking Windows License Key in Command Prompt is Important

Checking the Windows license key in Command Prompt can be highly beneficial for various reasons. Firstly, it allows you to verify the authenticity and validity of your Windows operating system. This is crucial to ensure that you are using a legitimate copy of Windows and are not unknowingly using counterfeit software.

Secondly, checking the license key can help you troubleshoot issues related to activation or licensing. If you encounter difficulties activating your copy of Windows or if you receive constant activation prompts, verifying your license key through Command Prompt can provide valuable information about the status of your license and help you resolve any activation-related problems.

Additionally, knowing your Windows license key can be essential for system administrators or IT professionals responsible for managing multiple devices. By checking the license key, they can ensure compliance with licensing agreements and easily track the status of licenses across different machines.

In summary, checking the Windows license key in Command Prompt is crucial for verifying the authenticity of your operating system, troubleshooting licensing issues, and facilitating license management in a professional setting.

Method 1: Using the Command Prompt

The Command Prompt provides a straightforward way to check your Windows license key. Follow the steps below:

  • Open the Command Prompt by pressing the Windows key + R, typing «cmd,» and hitting Enter.
  • In the Command Prompt window, type the command «wmic path softwarelicensingservice get OA3xOriginalProductKey» and press Enter.
  • Wait for the command to execute. After a few seconds, the Windows license key associated with your device will be displayed.
  • Make a note of the license key for future reference, or take a screenshot for easy retrieval.

By following these steps, you can quickly retrieve your Windows license key using the Command Prompt.

Additional Information: License Key Formats

Windows license keys can have different formats depending on the version and method of acquisition. Some common license key formats include:

Format Description
25-character string The most common format, typically used for Retail or OEM licenses.
Digital entitlement For Windows 10, the license may be associated with a digital entitlement rather than a traditional key.
Multiple-use key Some volume licensing agreements provide a key that can be used on multiple devices.

It’s important to note that the license key displayed in Command Prompt may not always match the key you see on your product packaging or activation screen. This is because some Windows editions use a generic key during installation and rely on digital entitlements or activation servers to verify and assign the appropriate license key to your device.

Troubleshooting: License Key Not Found

If the Command Prompt displays the message «Not Found» or «No Instance(s) Available,» it means that the license key for your Windows installation could not be found using this method. This can occur in certain scenarios, such as:

  • Your Windows version does not store the license key in a retrievable manner.
  • The Command Prompt is not being run with administrative privileges. Ensure that you run it as an administrator.
  • Your Windows copy is not activated, or you are using an invalid or pirated version.

In case your license key cannot be retrieved through Command Prompt, consider alternative methods such as using third-party software or checking the key in the Windows Registry.

Method 2: Viewing License Key in Windows Settings

If you prefer a graphical user interface (GUI) approach, you can also check your Windows license key through the Windows Settings. Follow these steps:

  • Open the Start menu and click on the Settings (gear icon).
  • In the Settings window, select «Update & Security.»
  • Choose the «Activation» tab from the sidebar.
  • Scroll down to the section labeled «Windows specifications.» Here you will find the product key associated with your Windows installation.
  • Note down the product key or take a screenshot for future reference.

By following these steps, you can easily view your Windows license key without needing to use the Command Prompt.

Alternative Method: Checking in the Control Panel

In older versions of Windows, you can also check the license key through the Control Panel. Here’s how:

  • Open the Start menu and search for «Control Panel.»
  • Open the Control Panel and navigate to «System and Security.»
  • Click on «System.»
  • In the System window, scroll down to the section labeled «Windows activation» or «Windows activation status.» Here you will find the license key associated with your Windows installation.
  • Make a note of the license key for future reference.

Note that this method is only applicable for Windows versions prior to Windows 10.

Method 3: Using Third-Party Software

If you prefer a more convenient way to check your Windows license key or if the Command Prompt and Windows Settings methods fail to retrieve the key, you can turn to third-party software. There are several reliable tools available that can scan your system and provide you with the license key information.

Some popular third-party software options for checking Windows license keys include:

  • ProduKey by NirSoft
  • Belarc Advisor
  • ShowKeyPlus

These tools offer a user-friendly interface and can retrieve the license key details from your system quickly.

Considerations when Using Third-Party Software

While third-party software can be useful for retrieving license keys, it’s important to exercise caution and only download software from trusted sources. Be wary of downloading software from unknown or unverified websites to avoid the risk of malware or unauthorized access to your system.

Method 4: Checking in the Windows Registry

The Windows Registry contains a wealth of information about your system, including the license key. Here’s how to check your Windows license key in the Registry:

  • Open the Command Prompt by pressing the Windows key + R, typing «regedit,» and hitting Enter.
  • In the Registry Editor window, navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
  • In the right pane, look for the entry named «DigitalProductId.» The value data of this entry represents your Windows license key.
  • Make a note of the license key or copy it for future reference.

Note that modifying the Windows Registry can have unintended consequences and should only be done by experienced users or professionals. It is recommended to create a backup of your Registry before making any changes.

In conclusion, there are multiple methods to check your Windows license key in Command Prompt or through alternative approaches such as Windows Settings, Control Panel, third-party software, or the Windows Registry. These methods provide different ways to retrieve this critical information and can help you verify the authenticity of your Windows operating system, troubleshoot activation issues, and manage licenses effectively.

How To Check Windows License Key In Command Prompt

Check Windows License Key in Command Prompt

Checking the license key of your Windows operating system is a simple process that can be done using the Command Prompt utility. This method is particularly useful when you need to retrieve your license key for reinstallation or troubleshooting purposes. Here is a step-by-step guide to help you check your Windows license key:

  • Open the Command Prompt by typing «cmd» in the search bar or pressing Windows key + R, then typing «cmd» and pressing Enter.
  • In the Command Prompt window, type «wmic path softwarelicensingservice get OA3xOriginalProductKey» and press Enter.
  • The Windows license key will be displayed on the screen. Take note of your license key for future reference or copy it to a text document.

By following these steps, you can easily check your Windows license key using Command Prompt. Remember to keep your license key safe and secure, as it is essential for activating and validating your Windows operating system.

Key Takeaways: How to Check Windows License Key in Command Prompt

  • Open Command Prompt as an administrator to check your Windows license key.
  • Type the command «slmgr /xpr» and press Enter to display the license expiration date.
  • Use the command «wmic path softwarelicensingservice get OA3xOriginalProductKey» to view the license key.
  • To save the license key information to a text file, use the command «wmic path softwarelicensingservice get OA3xOriginalProductKey >> C:\licensekey.txt».
  • Windows 10 users can also use the Settings app to check their license key.

Frequently Asked Questions

Here are some commonly asked questions about how to check Windows license key in Command Prompt:

1. How can I check my Windows license key using Command Prompt?

To check your Windows license key using Command Prompt, follow these steps:

Step 1: Press the Windows key + X to open the Power User menu and select Command Prompt (Admin) or Windows PowerShell (Admin).

Step 2: In the Command Prompt, type or copy and paste the following command:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Step 3: Press Enter to execute the command.

After performing these steps, your Windows license key will be displayed in the Command Prompt window.

2. Can I check the Windows license key of another computer using Command Prompt?

No, you cannot check the Windows license key of another computer using Command Prompt on your own computer. The command mentioned in the previous question retrieves the license key of the current Windows installation only.

3. Is there any other method to check the Windows license key?

Yes, aside from using Command Prompt, you can also check the Windows license key using the following methods:

— Using the Windows Registry Editor

— Checking the sticker on your computer or laptop that came with the Windows license key

— Using third-party software specifically designed to retrieve Windows license information

4. Why would I need to check my Windows license key?

There are several reasons why you might need to check your Windows license key:

— Activation: Verifying your Windows license key is essential for activating your operating system and ensuring that it is genuine.

— Reinstallation: If you need to reinstall Windows, you will require the license key to activate the new installation.

— Troubleshooting: When seeking technical support for Windows-related issues, providing your license key may be necessary.

5. Can I change or update my Windows license key using Command Prompt?

No, you cannot change or update your Windows license key using Command Prompt. To change or update your license key, you need to use the official Microsoft activation website or contact Microsoft support for assistance.

Checking your Windows license key using the Command Prompt is a straightforward process that allows you to easily retrieve important information about your operating system. By following a few simple steps, you can quickly access your license key and ensure that your Windows installation is genuine and properly activated.

To check your Windows license key in Command Prompt, open the Command Prompt window and type in the command «wmic path softwarelicensingservice get OA3xOriginalProductKey.» Press Enter, and your license key will be displayed on the screen. This method provides a direct way to retrieve your license key without the need for third-party software or complicated procedures.

Сразу после выхода новой ОС, все стали интересоваться, как узнать ключ установленной Windows 10, хотя в большинстве случаев он не требуется. Тем не менее, если вам все-таки требуется ключ для тех или иных целей, его сравнительно просто определить, как для установленной ОС, так и зашитый производителем в UEFI ключ продукта (они могут отличаться).

В этой инструкции описаны простые способы узнать ключ продукта Windows 10 с помощью командной строки, Windows PowerShell, а также сторонних программ. Заодно упомяну о том, почему разные программы показывают разные данные, как отдельно посмотреть OEM ключ в UEFI (для ОС, которая изначально была на компьютере) и ключ установленной в данный момент системы.

Примечание: если вы произвели бесплатное обновление до Windows 10, а теперь хотите узнать ключ активации для чистой установки на том же компьютере, вы можете это сделать, но это не обязательно (к тому же у вас будет ключ такой же, как и у других людей, получивших десятку путем обновления). При установке Windows 10 с флешки или диска, вас попросят ввести ключ продукта, но вы можете пропустить этот шаг, нажав в окне запроса «У меня нет ключа продукта» (и Майкрософт пишет, что так и нужно делать).

После установки и подключения к Интернету, система будет автоматически активирована, поскольку активация «привязывается» к вашему компьютеру после обновления. То есть поле для ввода ключа в программе установки Windows 10 присутствует только для покупателей Retail-версий системы. Подробнее про такую активацию: Активация Windows 10. А при желании, можно использовать Windows 10 и без активации.

Просмотр ключа продукта  установленной Windows 10 и OEM-ключа в ShowKeyPlus

Есть множество программ для описываемых здесь целей, о многих из которых я писал в статье Как узнать ключ продукта Windows 8 (8.1) (подойдет и для Windows 10), но мне больше других приглянулась найденная недавно ShowKeyPlus, которая не требует установки и отдельно показывает сразу два ключа: установленной в текущий момент системы и OEM ключ в UEFI. Заодно сообщает, для какой именно версии Windows подходит ключ из UEFI. Также с помощью этой программы можно узнать ключ из другой папки с Windows 10 (на другом жестком диске, в папке Windows.old), а заодно проверить ключ на валидность (пункт Check Product Key).

Все, что нужно сделать — запустить программу и посмотреть отображаемые данные:

Посмотреть ключ Windows 10 в ShowKeyPlus

 

  • Installed Key — ключ установленной системы.
  • OEM Key (Original Key) — ключ предустановленной ОС, если она была на компьютере, т.е. ключ из UEFI.

Также эти данные можно сохранить в текстовый файл для дальнейшего использования или архивного хранения, нажав кнопку «Save». Кстати, проблема с тем, что порой разные программы показывают разные ключи продукта для Windows, как раз и появляется из-за того, что некоторые из них смотрят его в установленной системе, другие в UEFI.

Скачать ShowKeyPlus можно со страницы https://github.com/Superfly-Inc/ShowKeyPlus/releases/, также с недавних пор приложение доступно для загрузки в Microsoft Store.

Еще две программы, чтобы узнать ключ продукта Windows 10

Если по той или иной причине ShowKeyPlus для вас оказался неподходящим вариантом, можно использовать следующие две программы:

Просмотр ключа установленной Windows 10 с помощью PowerShell

Там, где можно обойтись без сторонних программ, я предпочитаю обходиться без них. Просмотр ключа продукта Windows 10 — одна из таких задач. Если же вам проще использовать бесплатную программу для этого, пролистайте руководство ниже. (Кстати, некоторые программы для просмотра ключей отправляют их заинтересованным лицам)

Простой команды PowerShell или командной строки, для того чтобы узнать ключ установленной в настоящий момент времени системы не предусмотрено (есть такая команда, показывающая ключ из UEFI, покажу ниже. Но обычно требуется именно ключ текущей системы, отличающийся от предустановленной). Но можно воспользоваться готовым скриптом PowerShell, который отображает необходимую информацию (автор скрипта Jakob Bindslet).

Вот что потребуется сделать. Прежде всего, запустите блокнот и скопируйте в него код, представленный ниже.

#Main function
Function GetWin10Key
{
	$Hklm = 2147483650
	$Target = $env:COMPUTERNAME
	$regPath = "Software\Microsoft\Windows NT\CurrentVersion"
	$DigitalID = "DigitalProductId"
	$wmi = [WMIClass]"\\$Target\root\default:stdRegProv"
	#Get registry value 
	$Object = $wmi.GetBinaryValue($hklm,$regPath,$DigitalID)
	[Array]$DigitalIDvalue = $Object.uValue 
	#If get successed
	If($DigitalIDvalue)
	{
		#Get producnt name and product ID
		$ProductName = (Get-itemproperty -Path "HKLM:Software\Microsoft\Windows NT\CurrentVersion" -Name "ProductName").ProductName 
		$ProductID =  (Get-itemproperty -Path "HKLM:Software\Microsoft\Windows NT\CurrentVersion" -Name "ProductId").ProductId
		#Convert binary value to serial number 
		$Result = ConvertTokey $DigitalIDvalue
		$OSInfo = (Get-WmiObject "Win32_OperatingSystem"  | select Caption).Caption
		If($OSInfo -match "Windows 10")
		{
			if($Result)
			{
				
				[string]$value ="ProductName  : $ProductName `r`n" `
				+ "ProductID    : $ProductID `r`n" `
				+ "Installed Key: $Result"
				$value 
				#Save Windows info to a file 
				$Choice = GetChoice
				If( $Choice -eq 0 )
				{	
					$txtpath = "C:\Users\"+$env:USERNAME+"\Desktop"
					New-Item -Path $txtpath -Name "WindowsKeyInfo.txt" -Value $value   -ItemType File  -Force | Out-Null 
				}
				Elseif($Choice -eq 1)
				{
					Exit 
				}
			}
			Else
			{
				Write-Warning "Запускайте скрипт в Windows 10"
			}
		}
		Else
		{
			Write-Warning "Запускайте скрипт в Windows 10"
		}
		
	}
	Else
	{
		Write-Warning "Возникла ошибка, не удалось получить ключ"
	}

}
#Get user choice 
Function GetChoice
{
    $yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes",""
    $no = New-Object System.Management.Automation.Host.ChoiceDescription "&No",""
    $choices = [System.Management.Automation.Host.ChoiceDescription[]]($yes,$no)
    $caption = "Подтверждение"
    $message = "Сохранить ключ в текстовый файл?"
    $result = $Host.UI.PromptForChoice($caption,$message,$choices,0)
    $result
}
#Convert binary to serial number 
Function ConvertToKey($Key)
{
	$Keyoffset = 52 
	$isWin10 = [int]($Key[66]/6) -band 1
	$HF7 = 0xF7
	$Key[66] = ($Key[66] -band $HF7) -bOr (($isWin10 -band 2) * 4)
	$i = 24
	[String]$Chars = "BCDFGHJKMPQRTVWXY2346789"	
	do
	{
		$Cur = 0 
		$X = 14
		Do
		{
			$Cur = $Cur * 256    
			$Cur = $Key[$X + $Keyoffset] + $Cur
			$Key[$X + $Keyoffset] = [math]::Floor([double]($Cur/24))
			$Cur = $Cur % 24
			$X = $X - 1 
		}while($X -ge 0)
		$i = $i- 1
		$KeyOutput = $Chars.SubString($Cur,1) + $KeyOutput
		$last = $Cur
	}while($i -ge 0)
	
	$Keypart1 = $KeyOutput.SubString(1,$last)
	$Keypart2 = $KeyOutput.Substring(1,$KeyOutput.length-1)
	if($last -eq 0 )
	{
		$KeyOutput = "N" + $Keypart2
	}
	else
	{
		$KeyOutput = $Keypart2.Insert($Keypart2.IndexOf($Keypart1)+$Keypart1.length,"N")
	}
	$a = $KeyOutput.Substring(0,5)
	$b = $KeyOutput.substring(5,5)
	$c = $KeyOutput.substring(10,5)
	$d = $KeyOutput.substring(15,5)
	$e = $KeyOutput.substring(20,5)
	$keyproduct = $a + "-" + $b + "-"+ $c + "-"+ $d + "-"+ $e
	$keyproduct 
	
  
}
GetWin10Key

Сохраните файл с расширением .ps1. Для того, чтобы сделать это в блокноте, при сохранении в поле «Тип файла» укажите «Все файлы» вместо «Текстовые документы». Сохранить можно, например, под именем win10key.ps1

После этого, запустите Windows PowerShell от имени Администратора. Для этого, можно начать набирать PowerShell в поле поиска, после чего кликнуть по нему правой кнопкой мыши и выбрать соответствующий пункт.

В PowerShell введите следующую команду: Set-ExecutionPolicy RemoteSigned и подтвердите ее выполнение (ввести Y и нажать Enter в ответ на запрос).

Следующим шагом, введите команду: C:\win10key.ps1 (в данной команде указывается путь к сохраненному файлу со скриптом).

Получение ключа Windows 10 в PowerShell

В результате выполнения команды вы увидите информацию о ключе установленной Windows 10 (в пункте Installed Key) и предложение сохранить ее в текстовый файл. После того, как вы узнали ключ продукта, можете вернуть политику выполнения скриптов в PowerShell к значению по умолчанию с помощью команды Set-ExecutionPolicy restricted

Как узнать OEM ключ из UEFI в PowerShell

Если на вашем компьютере или ноутбуке была предустановлена Windows 10 и требуется просмотреть OEM ключ (который хранится в UEFI материнской платы), вы можете использовать простую команду, которую необходимо запустить в командной строке от имени администратора.

wmic path softwarelicensingservice get OA3xOriginalProductKey

В результате вы получите ключ предустановленной системы при его наличии в системе (он может отличаться от того ключа, который используется текущей ОС, но при этом может использоваться для того, чтобы вернуть первоначальную версию Windows).

Еще один вариант этой же команды, но для Windows PowerShell

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

Как посмотреть ключ установленной Windows 10 с помощью скрипта VBS

И еще один скрипт, уже не для PowerShell, а в формате VBS (Visual Basic Script), который отображает ключ продукта установленной на компьютере или ноутбуке Windows 10 и, возможно, удобнее для использования.

Скопируйте в блокнот строки, представленные ниже.

Set WshShell = CreateObject("WScript.Shell")
regKey = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
DigitalProductId = WshShell.RegRead(regKey & "DigitalProductId")
Win10ProductName = "Версия Windows 10: " & WshShell.RegRead(regKey & "ProductName") & vbNewLine
Win10ProductID = "ID продукта: " & WshShell.RegRead(regKey & "ProductID") & vbNewLine
Win10ProductKey = ConvertToKey(DigitalProductId)
ProductKeyLabel ="Ключ Windows 10: " & Win10ProductKey
Win10ProductID = Win10ProductName & Win10ProductID & ProductKeyLabel
MsgBox(Win10ProductID)
Function ConvertToKey(regKey)
Const KeyOffset = 52
isWin10 = (regKey(66) \ 6) And 1
regKey(66) = (regKey(66) And &HF7) Or ((isWin10 And 2) * 4)
j = 24
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
y = 14
Do
Cur = Cur * 256
Cur = regKey(y + KeyOffset) + Cur
regKey(y + KeyOffset) = (Cur \ 24)
Cur = Cur Mod 24
y = y -1
Loop While y >= 0
j = j -1
winKeyOutput = Mid(Chars, Cur + 1, 1) & winKeyOutput
Last = Cur
Loop While j >= 0
If (isWin10 = 1) Then
keypart1 = Mid(winKeyOutput, 2, Last)
insert = "N"
winKeyOutput = Replace(winKeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
If Last = 0 Then winKeyOutput = insert & winKeyOutput
End If
a = Mid(winKeyOutput, 1, 5)
b = Mid(winKeyOutput, 6, 5)
c = Mid(winKeyOutput, 11, 5)
d = Mid(winKeyOutput, 16, 5)
e = Mid(winKeyOutput, 21, 5)
ConvertToKey = a & "-" & b & "-" & c & "-" & d & "-" & e
End Function

Должно получиться как на скриншоте ниже.

Скрипт чтобы узнать ключ Windows 10 в блокноте

После этого сохраните документ с расширением .vbs (для этого в диалоге сохранения в поле «Тип файла» выберите «Все файлы».

Сохранение скрипта VBS в блокноте

Перейдите в папку, где был сохранен файл и запустите его — после выполнения вы увидите окно, в котором будут отображены ключ продукта и версия установленной Windows 10.

Как я уже отметил, программ для просмотра ключа есть множество — например, в Speccy, а также других утилитах для просмотра характеристик компьютера можно узнать эту информацию. Но, уверен, тех способов, что описаны здесь, будет достаточно практически в любой ситуации.

When it comes to using Microsoft Windows, ensuring you have a valid license key is essential. Did you know that without a valid license key, you may risk facing legal consequences for using pirated software? Checking your Microsoft Windows license key is a crucial step to verify the authenticity of your operating system and ensure compliance with licensing agreements.

To check your Microsoft Windows license key, you can follow a few simple steps. First, open the Command Prompt by pressing the Windows key + R and typing «cmd» in the Run dialog box. Then, enter the command «slmgr /dli» and press Enter. This will display the License Information window, where you can find your license key listed under the Product Key section. Verifying your license key is not only important for legal reasons but also for accessing updates and support from Microsoft.

To check your Microsoft Windows license key, follow these steps:
1. Press the Windows key + R to open the Run dialog.
2. Type «cmd» and press Enter to open the Command Prompt.
3. In the Command Prompt, type «slmgr /dli» without the quotes and press Enter.
4. A pop-up window will display your license information, including the license key.
5. Take note of the license key for future reference.

Why Checking Your Microsoft Windows License Key is Important

Microsoft Windows is one of the most popular operating systems globally, used by millions of users on their computers. When you install Windows on your computer, you need a valid license key to activate and validate your copy of the operating system. The license key acts as proof of ownership and ensures that you are using a genuine, legally acquired version of Windows. Checking your Windows license key is essential for several reasons:

  • Verifying the legitimacy of your Windows copy
  • Ensuring compliance with software licensing regulations
  • Preventing the use of counterfeit or pirated software
  • Protecting your computer from malware and security vulnerabilities

In this article, we will explore different methods to check your Microsoft Windows license key. Whether you want to confirm the authenticity of your current Windows installation or retrieve your key for reinstallation purposes, these methods will guide you in finding the necessary information.

Method 1: Using Command Prompt

The Command Prompt is a powerful tool in Windows that allows you to execute various commands and perform administrative tasks. To check your Windows license key using Command Prompt, follow these steps:

Step 1: Open Command Prompt

To open Command Prompt, press the Windows key + R on your keyboard to open the Run dialog box. Type «cmd» and press Enter or click «OK.» This will launch the Command Prompt window.

Step 2: Run the Command

In the Command Prompt window, type the following command and press Enter:

wmic path softwarelicensingservice get OA3xOriginalProductKey

This command will retrieve the original product key associated with your Windows installation.

Step 3: Note Down the License Key

After running the command, the Command Prompt will display your Windows license key. Take note of the key and keep it in a secure place for future reference.

Method 2: Using PowerShell

PowerShell is a more advanced command-line interface that provides additional capabilities compared to Command Prompt. Here’s how you can check your Windows license key using PowerShell:

Step 1: Launch PowerShell

Open PowerShell by pressing the Windows key + X and selecting «Windows PowerShell» from the menu. Alternatively, you can search for «PowerShell» in the Start menu and click on the «Windows PowerShell» app.

Step 2: Run the Command

In the PowerShell window, type the following command and press Enter:

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

The command will retrieve your Windows license key and display it on the screen.

Step 3: Save or Note Down the License Key

Once the license key is displayed, you can take a screenshot or copy it to a secure location for future reference.

Method 3: Using Windows Registry

The Windows Registry contains various settings and information about your computer. You can also retrieve your Windows license key from the Registry. Here’s how:

Step 1: Open the Registry Editor

Press the Windows key + R, type «regedit,» and press Enter to open the Registry Editor.

Step 2: Navigate to the License Key Entry

In the Registry Editor, navigate to the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

Step 3: Locate the DigitalProductID Value

In the right pane of the Registry Editor, locate the «DigitalProductID» value. This value contains your Windows license key encoded in a series of characters.

Step 4: Decode and Note Down the License Key

To decode the license key, you can use an online decoding tool or follow a manual decoding process. Once decoded, note down the license key for future reference.

Method 4: Using a Third-Party Software

If you prefer a more user-friendly approach, you can use third-party software to check your Windows license key. There are several software options available that can retrieve your license key with a few clicks. Here are some popular choices:

  • ProduKey by NirSoft
  • Belarc Advisor
  • WinKeyFinder

Download and install the software of your choice, and follow the instructions provided to retrieve your license key.

Why Checking Your Microsoft Windows License Key is Important

Checking your Microsoft Windows license key is important for several reasons:

  • Legal Compliance: Ensuring that you are using a genuine and legally acquired version of Windows helps you stay compliant with software licensing regulations.
  • Security and Malware Prevention: Genuine Windows versions receive regular security updates, protecting your computer from malware and potential security vulnerabilities.
  • Support and Updates: Having a valid license key allows you to receive support and updates from Microsoft, ensuring that your operating system remains up to date.
  • Software Validation: Verifying your license key ensures that you are not using counterfeit or pirated software, which can be unreliable and potentially harmful.
  • Reinstallation and Troubleshooting: If you need to reinstall Windows or troubleshoot any issues, having your license key readily available makes the process smoother and more efficient.

By regularly checking your Windows license key, you can ensure that you are using a legitimate copy of the operating system and enjoy the full benefits of a genuine Windows experience.

How To Check Microsoft Windows License Key

How to Verify the Microsoft Windows License Key

If you want to check the validity and authenticity of your Microsoft Windows license key, follow these steps:

  • Click on the «Start» button and select «Settings».
  • In the Settings menu, click on «Update & Security».
  • In the Update & Security menu, select «Activation» from the left pane.
  • Scroll down to the bottom of the page and look for the «Windows» section.
  • Under the Windows section, you will find the «Product key» or «Digital license» information.
  • Verify the license key or digital license to ensure its validity and authenticity.

By following these steps, you can easily verify the Microsoft Windows license key or digital license for your system. It is important to ensure the validity of your license key to comply with software licensing agreements and avoid any legal issues.

Key Takeaways — How to Check Microsoft Windows License Key

  • There are several methods to check your Microsoft Windows license key.
  • One way is to use the Command Prompt and run a specific command.
  • You can also use the PowerShell to retrieve the license key information.
  • The Settings app in Windows 10 provides an option to view your license key.
  • If you have a physical copy of your Windows installation media, the license key may be printed on it.

Frequently Asked Questions

Here are some common questions about how to check your Microsoft Windows license key:

1. How can I check the license key on my Windows computer?

To check the license key on your Windows computer, you can follow these steps:

1. Open the Start menu and type «Command Prompt» in the search bar.

2. Right-click on the Command Prompt application and select «Run as administrator.»

3. In the Command Prompt window, type «slmgr /dli» and press Enter.

4. Wait for a few seconds, and a new window will open showing your Windows license information, including the license key.

5. You can now view and note down your license key for future reference.

2. Can I check the license key without using Command Prompt?

Yes, there is an alternative method to check the license key without using Command Prompt:

1. Open the Start menu and click on the «Settings» icon (gear-shaped).

2. In the Settings window, click on «System» and then select «About» from the left sidebar.

3. Scroll down in the About window until you find the «Windows specifications» section.

4. Look for the «Product key» field, which displays your license key.

5. You can now copy or note down the license key for future reference.

3. What if I can’t find my license key using these methods?

If you can’t find your license key using the methods mentioned above, there are a few other options:

1. Check the email: If you purchased a digital copy of Windows, check your email for the purchase confirmation or receipt. It should contain the license key.

2. Check the product packaging: If you purchased a physical copy of Windows, look for a sticker or card inside the product packaging that contains the license key.

3. Contact Microsoft support: If you still can’t find your license key, you can contact Microsoft support for assistance. Provide them with your purchase details, and they will help you retrieve your license key.

4. Is the license key the same as the product key?

Yes, the license key and product key are the same and can be used interchangeably. They refer to the alphanumeric code that validates your Windows license.

5. Can I transfer my license key to a new computer?

In most cases, you can transfer your Windows license key to a new computer. However, there are certain conditions you need to meet:

1. The license key is a retail license and not an OEM (Original Equipment Manufacturer) license.

2. You have removed the Windows installation from the previous computer and have a genuine copy of Windows to install on the new computer.

It is recommended to check the terms and conditions of your specific Windows license or consult Microsoft support for guidance on transferring your license key.

To recap, checking your Microsoft Windows license key is a simple process that can be done using the Command Prompt or the Registry Editor. By following the steps outlined in this article, you can easily verify the authenticity of your Windows license and ensure that you are using a valid copy of the operating system.

Remember, having a valid license for Microsoft Windows is important to protect your computer and ensure that you have access to the latest updates and security features. If you encounter any issues with your license key or need further assistance, don’t hesitate to reach out to Microsoft support for help. Keep your license key handy and enjoy the benefits of a genuine Windows operating system!

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Dell wireless 1703 bluetooth driver windows 10
  • Windows 7 needs to install the sha 2 update nvidia
  • Как изменить путь к папке пользователя windows 11
  • Как сделать скриншот экрана на windows семь
  • Consult 3 plus не запускается на windows 10