Все способы:
- Способ 1: «Командная строка»
- Способ 2: «Windows PowerShell»
- Способ 3: Фирменное программное обеспечение
- Вопросы и ответы: 3
Важно! В этой статье речь будет идти о просмотре серийного номера компьютера средствами операционной системы Windows 10, что не предполагает такие методы, как просмотр надписи на наклейке устройства и поиск информации в BIOS. Поэтому, в случае необходимости, рекомендуем обратиться за помощью к другой статье на нашем сайте. Несмотря на то, что в ней речь идет о ноутбуке, перечисленные способы в большинстве своем будут полезны и для владельцев стационарных компьютеров.
Подробнее: Как узнать серийный номер ноутбука
Способ 1: «Командная строка»
Наиболее распространенный способ просмотра серийного номера устройства — выполнение специального запроса в «Командной строке» операционной системы. Первостепенно необходимо будет запустить саму консоль. Сделать это можно многими способами, например, выполнив поиск по системе. Для этого установите курсор в поисковую строку на панели задач и введите запрос «Командная строка». Затем в результатах выдачи кликните по одноименному приложению.
Читайте также: Все способы запуска «Командной строки» в Windows 10
После того как на экране появится черное окно консоли, необходимо ввести вручную или скопировать приведенную ниже команду и нажать по клавише Enter:
wmic bios get serialnumber
Обратите внимание! Этот способ подразумевает обращение системы к утилите ввода и вывода (BIOS), в которой серийный номер должен быть прописан поставщиком оборудования. Если в консоли после выполнения команды указан «0» (ноль), это означает, что нужных данных нет, тогда этот способ становится попросту бесполезным.
Способ 2: «Windows PowerShell»
«Windows PowerShell» тоже позволяет просмотреть серийный номер компьютера путем ввода специальной команды, более того, в отличие от «Командной строки», доступны две версии запроса.
Для начала следует открыть непосредственно «PowerShell» любым доступным способом. В последних версиях Windows 10 проще всего это сделать через контекстное меню кнопки «Пуск». Для этого сначала нажмите по ней правой кнопкой мыши, а затем щелкните по строке «Windows PowerShell».
Читайте также: Все способы запуска «PowerShell» в Windows 10
После появления окна вызываемого приложения дождитесь, пока отобразится строка запроса, в данном случае это «PS C:\Users\USER>», но у вас она может отличаться. Затем скопируйте и вставьте приведенную ниже команду и нажмите Enter:
Get-WmiObject win32_bios | Format-List SerialNumber
Если после выполнения команды по каким-то причинам серийный номер компьютера не выведется на экран, рекомендуется повторить попытку, только на этот раз отправить другой запрос, приведенный ниже:
gwmi win32_bios | fl SerialNumber
Важно! Как и в случае с «Командной строкой», после выполнения команды в Windows PowerShell следует обращение в BIOS для получения нужной информации. Если ее там не оказалось, в результатах будет отображаться «0» (ноль). В таком случае этот способ выполнения поставленной задачи неэффективен.
Способ 3: Фирменное программное обеспечение
Современные компьютеры зачастую имеют фирменное программное обеспечение для настройки отдельных компонентов устройства и просмотра дополнительной информации о нем. С помощью таких приложений можно узнать в частности и серийный номер. Например, компьютеры от HP поставляются с предустановленной утилитой «HP System Event Utility», которая подходит для выполнения поставленной задачи.
Достаточно просто найти ее в списке приложений меню «Пуск» и запустить. На экране сразу откроется информационное окно, в котором будет находиться серийный номер компьютера.
Примечание! В случае отсутствия фирменной программы на компьютере, загружать ее рекомендуется только с официальных ресурсов производителя компьютера, иначе имеется риск проникновения вредоносного ПО в операционную систему.
Читайте также: Методы удаления вируса с компьютера под управлением Windows 10
Наша группа в TelegramПолезные советы и помощь
Updated by
Sherly on Jan 23, 2025
The Windows operating system stands as the cornerstone of modern computing. It powers a vast majority of personal and business devices worldwide. However, when it comes to managing licenses and product keys, many users often find themselves in search of essential information. Windows 10, Microsoft’s widely embraced operating system, has left users facing the challenge of retrieving their product keys.
It is a vital piece of information needed for various purposes, including system reinstallation and activation. Fortunately, there exists a straightforward solution that can help users retrieve their Windows 10 product key efficiently. This article from EaseUS delves into how to find the Windows 10 product key using Command Prompt. It will provide a step-by-step guide that explains the process for users of all levels.
Find Windows 10 Product Key via EaseUS Key Finder — Friendly to Beginners
You may find Command Prompt (CMD) challenging because it is difficult to use, especially for beginners who know little about coding. This is where EaseUS Key Finder comes in, which is super easy to operate. EaseUS Key Finder is an efficient tool that helps its users retrieve product keys if they have displaced them. It helps you find the activation keys in a few seconds; otherwise, it would have taken a lot of time.
EaseUS Key Finder is a powerful key finder software that displays Product IDs and CD keys of Windows and other software. Moreover, it helps you find Wi-Fi codes, browser accounts, and passwords too.
Advantages of EaseUS Key Finder:
- User-Friendly: With its easy-to-use interface, any user can perform operations on this software quite simply.
- Time-Saving: This software is designed to find product keys in no time, saving you time in finding those product IDs.
- Complete Key Retrieval: EaseUS Key Finder allows you to find and save serial numbers of Adobe and Office applications, too.
- Security and Privacy: It makes sure to keep the sensitive information of its users safe and secure during the retrieval process.
Are you in need of a Windows 10 product key? Look no further! EaseUS Key Finder software is specially designed to find your Windows 10 product key without any effort. With its user-friendly interface, you will have no difficulty in retrieving the key for your Windows, even if you are a beginner.
EaseUS Key Finder presents simple and convenient steps for its users with varying levels of technical expertise. Here is how to find the Windows 10 product key via EaseUS Key Finder.
Step 1. Click «Windows» tab under the Registry Key.
Step 2. Check Windows product key on the right side. Click «Copy» to paste. Or select other two options:
«Save» — Save to local as a PDF file.
«Print» — Click to print key file.
Key Features of EaseUS Key Finder:
- EaseUS Key Finder enables its users to recover product keys for different software and applications installed on their computers.
- It also provides the facility of backing up activation keys in the form of text or as a PDF file.
- This software is equipped with 24/7 technical support to resolve any issue of its users.
- Users find this retrieval process accurate and consistent due to the reliability of the software.
If you want to find your Product IDs without any hassle, download this software now to make your life easy. EaseUS Key Finder is a professional product key finder for Windows 10/11/8/7. It simplifies the process of finding your keys with its easy steps and without any effort. Consider downloading it to get tension-free in saving your activation keys.
For those who favor a more proactive approach, employing the Command Prompt can offer an alternative means to retrieve your Windows 10 product key. While this method requires you to run a series of specific commands, it remains a viable option for those comfortable with technical processes. You can use the following steps for how to find the Windows 10 product key using the Command Prompt:
Step 1. Use the «Win + S» keys combination to access the Windows Search bar and look for Command Prompt. When it appears, click «Run as administrator» to launch it with admin privileges.
Step 2. Within the Command Prompt, run the «wmic path softwarelicensingservice get OA3xOriginalProductKey» command. Now, wait for the system to process the command and provide the Windows 10 product key.
Read Also: Find Windows 11 Product Key Using CMD
While the Command Prompt method is effective for tech-savvy users, those seeking a more user-friendly and smooth approach are encouraged to opt for dedicated software solutions like EaseUS Key Finder. By leveraging the intuitive interface and comprehensive scanning capabilities of EaseUS Key Finder, users can simplify the process of retrieving their Windows 10 product key with minimal effort. Experience the convenience and efficiency that comes with a specialized tool.
Conclusion
In summary, learning how to find the Windows 10 product key using Command Prompt remains a crucial task for users across the globe. While the Command Prompt method offers a manual and effective approach, using dedicated software solutions like EaseUS Key Finder can significantly streamline this process. It caters to users of all technical backgrounds with a user-friendly interface and powerful scanning capabilities.
Simplify your Windows management experience by embracing the convenience and efficiency of tools such as EaseUS Key Finder. Regardless of your expertise level, tapping into the capabilities of specialized software can yield substantial benefits. Share this article with fellow Windows users and empower them to effortlessly retrieve their Windows 10 product keys using the most suitable method.
Windows 10 Product Key Using Command Prompt FAQs
For further clarification and assistance on specific aspects of how to find Windows 10 product key using Command Prompt, refer to the following frequently asked questions:
1. How do you view the product key in Windows 10 using CMD?
To uncover your product key in Windows 10 via the Command Prompt, adhere to the following guidelines:
Step 1. Launch Windows Run operation using the «Win + R» keys and type «CMD.» Now, use the «Ctrl + Shift + Enter» to launch Command Prompt with admin privileges.
Step 2. In the Command Prompt window, enter «wmic path softwarelicensingservice get OA3xOriginalProductKey» and hit ‘Enter.’ After a while, the product key of Windows 10 will appear on the screen.
2. How do I find my Windows 10 license key in the registry?
Here is how to find the Windows 10 license key in the registry of your PC:
Step 1. After launching the Run operation on your Windows computer, type «regedit» and press «Enter.»
Step 2. Within the Registry Editor, proceed to the «HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion» path. Here, find the «DigitalProductId» entry to find your Windows 10 license key.
3. Why is my product key not showing in CMD Windows 10?
If the product key fails to appear in the Command Prompt on Windows 10, several factors might be responsible, including specific system settings or errors during the retrieval process. It is essential to follow the steps precisely, and if the issue persists, consult Microsoft’s official support documentation or community forums for further assistance.
If you’re having trouble finding your Windows 10 product key, we’ve got you covered.
In this quick tutorial we’ll go over what a Windows product key is, and I’ll share several ways to find the product key on modern Windows machines.
A Windows product key or license is a 25 digit code used to activate your installation of Windows.
Back in the day, all you had to do to find your Windows product key was look for a sticker somewhere on the machine.
Usually you could find the sticker on the side of a desktop PC, or stuck to the bottom of a laptop:
_An old-school Windows product key sticker – Source_
Or if you bought a physical copy of Windows, your product key would be included somewhere in the box:
_A Windows 10 product key label — Source_
These days, if you buy a Windows 10 Home or Pro from the Microsoft Store or another online retailer like Amazon, it’ll include a digital copy of your product key.
But if your computer is relatively new and came with Windows preinstalled, you might be wondering how to find your key – there’s likely no sticker on the machine, and the computer manufacturer probably didn’t include one in the box.
Whether you installed and activated Windows yourself, or it came preinstalled, your product key is stored in the BIOS. This makes it really easy if you ever want to reinstall or upgrade Windows – there’s no sticker on the machine that could get damaged, and no small label to lose.
Still, there are times when you might need your product key, like if you want to transfer a Windows Home or Pro license to another machine.
Whatever the reason, here are a few ways to get your Windows 10 product key.
How to get your Windows 10 product key with the Command Prompt
If you want to get your product key from Windows, the easiest way is to do that is through the Windows Command Prompt.
First, press the Windows key, search for «cmd», and click on «Run as administrator»:
Then, run the following command:
wmic path softwarelicensingservice get OA3xOriginalProductKey
After that, you’ll see your Windows 10 product key:
Alternatively, you can run this command in the Command Prompt terminal:
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
Both of these commands attempt to read your Windows product key from something called the OA3 BIOS marker. In other words, they may only work if Windows came preinstalled, and not if you built the machine yourself and installed/activated Windows.
If your product key isn’t saved to your BIOS/UEFI for some reason, then these commands will either throw an error or return an empty string. In this case, or if you prefer a GUI, give the next method a try.
How to get your Windows 10 product key with a third-party program
There are a few tools out there like Belarc Advisor or Magical Jelly Bean KeyFinder that can detect your Windows product key.
We’ll use Magical Jelly Bean KeyFinder for this tutorial because, well – come on, that name, right?
All you have to do is download and install Magical Jelly Bean KeyFinder. Then open the KeyFinder program to see your product key:
Once you’ve copied your product key somewhere safe, feel free to uninstall Magical Jelly Bean KeyFinder.
So those are some quick ways to find your Windows 10 product key.
Did any of these methods or programs work for you? Did you find another way to get your product key? Let me know over on Twitter.
Learn to code for free. freeCodeCamp’s open source curriculum has helped more than 40,000 people get jobs as developers. Get started
You may need to find the Windows 10 product key if you want to transfer the license to another PC. Or if you want to activate Windows 11 using the previous version of Windows. Microsoft offers Windows 10 licenses through different channels. Commonly, it could be a retail license or OEM license. There are different ways to retrieve the key depending on Windows 10 license type.
Find Windows 10 License Type
First, you need to find the activation status of your Windows 10 PC.
1. Go to Start and open Settings, and navigate to System.
2. Select Activation from the left options, and you will find license details.
You may see that Windows is activated with a digital license or organization.
Activation Status | License Type |
Windows is Activated | Product Key |
Windows is Activated with a digital license | OEM or Digital License |
Windows is activated using your organization’s activation service | Volume Licensing |
Product Key– Windows 10 will have a product key in these cases-
- When you buy a PC that comes with Windows 10
- Windows 10 was bought from Microsoft online store.
- Buying digital or box copy from an authorized reseller
- Volume licensing agreement with the organization
- Bought a refurbished PC running Windows 10
Digital License – You will see “Windows is activated with a digital license” in these cases
- Upgrading to Windows 10 for free using a genuine copy of Windows 8.1 or 7.
- Buying Windows 10 upgrade from Microsoft Store.
- Buying Windows 10 from Microsoft App Store.
- Becoming Windows Insider from a genuine copy of Windows 10
Now, depending on the license type, you may or may not find the actual product key. However, you should try these methods.
Find Windows 10 Product Key Using Command Prompt
If Windows 10 is activated using a product key, you can find it using the command prompt.
1: Go to the Windows Search Bar, type “CMD,” and right-click to Run as administrator.
2: Type the following command and hit enter:
wmic path softwareLicensingService get OA3xOriginalProductKey
That’s it. This command will display the product key in the Command Prompt.
If you do not see a Product Key, or if the result is blank, it means that you are using a digital license / OEM License.
Also, this method is deprecated with the latest build of Windows 10. But you can still try.
Get Product Key Using Powershell
Powershell is another administrative tool to execute Windows commands. You can use it to get Windows 10 product key as well.
1. Go to Start and search for PowerShell.
2. Right-click on it and “Run as Administrator.”
3. Type or copy-paste the following command-
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
Again, this may show blank results on a PC activated with a digital license.
Find Windows 10 Product key in the Registry Editor
Windows stores the product key in the registry database; you can get the key from the registry editor.
1. Go to Start and search for regedit.
2. RIght click on Registry Editor and click “Run as Administrator.”
3. You will get the registry editor. Navigate to the following path by expanding the folder tree.
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
Once you navigate the given path, select “SoftwareProtectionPlatform” and check the registry keys on the right pane.
Check the value for the “BackupProductKeyDefault” registry key. Double-click on it and copy the value data. This 25-digit string is the product key.
This will work in both cases if your PC is activated using a key or have a digital license.
Using Third-Party Software
If the above methods aren’t working for you, it is recommended to use a third-party tool. One such tool is KeyFinder by Magical Jelly Bean. The tool is lightweight, and the publisher is verified by Microsoft.
- First, download and install ProductKeyFinder.
- Once installed, run the program.
- Open the ProduKey application.
- Now you will see the CD key listed here.
That’s it! This way, you can get the product key embedded in the system firmware.
If you bought at laptop with pre-activated version of Windows 10 then most probably it will be a digital license, manufacture will embed the key in system UEFI/BIOS. Such keys are not transferable.
For digital license – You don’t need to supply the product key to activate Windows 10 or Windows 11 on same PC, just link your Microsoft account to Windows 10 before upgrade.
Let’s say that you do not have access to the activated Windows. There could be several cases like you might have bought a new computer, a new Windows 10 copy, etc. Then there are a few possibilities for finding the product key:
If You Have Just Bought a New PC Running Windows 10
In that case, you should find the Windows 10 Product Key preinstalled. You can find it inside the packaging of the computer or in the Certificate of Authenticity (COA) attached to the PC. You can also contact the seller from whom you bought the computer for help.
If you buy Windows 10 from an authorized seller, you will have the product key inside the packaging. Just make sure that you do not throw the box or contents inside it right away.
If You Buy Digital Copy of Windows 10 From An Authorized Seller
When you buy a digital copy of Windows 10 from any authorized seller, you receive the product key in your email. You can always look inside the spam folder if you don’t find the email.
If You Buy Windows 10 From Microsoft Store
Well, if you buy Windows 10 from Official Microsoft Store, then there should be no problem. You will get your product key in the registered email account. Additionally, you can also find the product key on the Orders History page of the Microsoft Account you used to buy Windows 10.
You can use the key to re-activate Windows 10 on the same PC if you have a digital license. It won’t work if you have changed the motherboard.
If your PC was activated using the 25-digit product key, it is transferrable; you just need to deactivate it on the old PC.
Also Read:
- What is DISM Command & How To Use It To Repair Windows 10 Image
- How to Fix Slow Windows 10 & Improve Performance – 200% Faster PC
Faqs
How do I find my Windows 10 product key using CMD?
Open the command prompt as admin and type “wmic path softwareLicensingService get OA3xOriginalProductKey not working” and hit enter to see the product key.
wmic path softwareLicensingService get OA3xOriginalProductKey not working
If Windows 10 is activated using OEM / Digital License, the above command will show a blank result. In this case, link your Microsoft account to Windows 10 for an upgrade.
Is Windows 10 Key Retail or OEM?
1. Open the command prompt as admin.
2. Type slmgr /dli and hit enter.
3. Check the Windows Description
4. It will result in Retail OEM or Volume Licensing.
How do I find my Windows 10 product key in BIOS?
1. Open PowerShell as admin.
2 Type (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey
3. Hit enter on the keyboard, showing the product key.
How do I find my Windows 10 product key in the Registry?
1. Open the registry editor.
2. Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
3. Check the value for BackupProductKeyDefault. This value is the product key
Сразу после выхода новой ОС, все стали интересоваться, как узнать ключ установленной 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).
Все, что нужно сделать — запустить программу и посмотреть отображаемые данные:
- 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 (в пункте 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
Должно получиться как на скриншоте ниже.
После этого сохраните документ с расширением .vbs (для этого в диалоге сохранения в поле «Тип файла» выберите «Все файлы».
Перейдите в папку, где был сохранен файл и запустите его — после выполнения вы увидите окно, в котором будут отображены ключ продукта и версия установленной Windows 10.
Как я уже отметил, программ для просмотра ключа есть множество — например, в Speccy, а также других утилитах для просмотра характеристик компьютера можно узнать эту информацию. Но, уверен, тех способов, что описаны здесь, будет достаточно практически в любой ситуации.