Серийный номер лицензии windows

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 подлинным программным обеспечением Майкрософт, см. на соответствующей странице.

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

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

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

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,302,646 times.

Is this article up to date?

Quick Tips

  • Use Command Prompt: Open Command Prompt and type wmic path softwarelicensingservice get OA3xOriginalProductKey to retrieve your Windows product key.
  • Registry Method: Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform in the Registry Editor to find your product key.
  • Third-Party Tools: Use reliable third-party software like ProduKey or ShowKeyPlus to quickly find and back up your product key.

1. Using Command Prompt

Step 1: Press the Windows key, type Command Prompt, and click on Run as administrator.

Select Yes in the prompt.

Step 2: Type the following command and press Enter.

wmic path softwareLicensingService get OA3xOriginalProductKey
Type the following command

There you go. You will be shown your Windows product key when you press Enter. Pretty straightforward, right? There’s one more command line way to find the product key, but with Windows PowerShell. 

2. Using Windows PowerShell

Step 1: Press the Windows key, type Windows PowerShell, and select Run as Administrator.

Select Yes in the prompt.

Step 2: Enter the following command and press Enter.

powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"
Enter the following command

There you go. This method is as easy as pie. We recommend you copy the above command, but if you are typing it, ensure you leave spaces and add dots, as shown above.

If Windows PowerShell begins behaving strangely, check out different ways to fix PowerShell popping up on Windows.

3. Using Registry Files

Step 1: Press the Windows key, type Registry Editor, and click on Run as administrator.

Select Yes in the prompt.

Step 2: Enter the below address into the Registry’s address bar.

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

Step 3: In the right side panel, under Name, you will find BackupProductKeyDefault; right beside it, you will see your Windows product key.

address into the Registry’s address bar

Note: You may find the product key coming from the Command Prompt or PowerShell different from the product key coming from the Registry Editor. It might happen because you have upgraded or changed your Windows version.

1. What is a product key finder? 

The product key finder is a tool for displaying Microsoft Windows product keys and other important information.

2. Are Windows keys stored in BIOS?

The Windows key is stored in the BIOS and invoked when there is an event that restores your operating system. The BIOS key is used to activate Windows automatically if you use the same edition of Windows.

3. Is the product ID the same as the product key? 

They are not. The product ID is used to determine the level of service you are entitled to, whereas the product key is used to pair your license with your PC and validate its authenticity.

4. Is Windows 10 illegal without activation? 

The installation of Windows without a license is acceptable. Activating it through unsolicited means without purchasing the key is, however, unlawful.

Although there are third-party tools that let you find your Windows product key, they pose the risk of a privacy breach. Besides, it is also worth considering that you can do it on your own without the need for a third-party tool.

Was this helpful?

Thanks for your feedback!

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.

How to Find a Windows 10 Product Key

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:

Picture of a Windows 7 product key sticker

_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:

Image

_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»:

Screenshot of opening the command prompt as an administrator

Then, run the following command:

wmic path softwarelicensingservice get OA3xOriginalProductKey

After that, you’ll see your Windows 10 product key:

Output of the wmic command listed above

Alternatively, you can run this command in the Command Prompt terminal:

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

Output of the powershell command listed above

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:

Screenshot of the Windows product key in Magical Jellybean KeyFinder

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

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

В этой пошаговой инструкции несколько способов узнать ключ продукта Windows 11 — OEM ключ предустановленной системы или Retail ключ установленной системы, если вы приобретали его. Заранее отмечу, что ключ часто и вовсе не требуется, о чем в последнем разделе статьи.

OEM и Retail ключ Windows 11 в ShowKeyPlus

Самый простой и быстрый способ посмотреть ключ продукта Windows 11, как OEM (хранящийся в UEFI ПК и ноутбуков с предустановленной системой) так и Retail (тот, который вы вводили самостоятельно при установке ОС) — простая бесплатная программа ShowKeyPlus. Порядок действий:

  1. Зайдите в магазин приложений Microsoft Store, используйте поиск, чтобы найти и установить ShowKeyPlus. Если вариант с Microsoft Store вам не подходит, можно использовать загрузку с GitHub — https://github.com/Superfly-Inc/ShowKeyPlus/releases
    ShowKeyPlus в Microsoft Store

  2. Запустите приложение.
  3. Получите информацию о ключе продукта Windows 11 (и, возможно, других версий ОС, о чем подробнее ниже).
    Ключ установленной Windows 11 и OEM ключ в ShowKeyPlus

В отчете программы на вкладке «Home» вы увидите следующую важную в контексте рассматриваемой темы информацию:

  • Installed Key — ключ продукта установленный в настоящий момент системы: это может быть Retail-ключ продукта, а может быть и «универсальный» ключ, в случае если при установке он не вводился и используется цифровая лицензия, привязанная к оборудованию.
  • OEM Key — ключ продукта предустановленной при покупке системы (может отсутствовать), хранящийся в UEFI. Это может быть не только Windows 11, но и одна из предыдущих версий системы. Как правило, с помощью этого ключа (даже если он от предыдущей ОС) можно установить Windows 11 на этом же компьютере или ноутбуке.
  • OEM Edition — система, которая была установлена на текущем компьютере производителем изначально, не обязательно Windows

Как посмотреть OEM-ключ продукта с помощью командной строки или PowerShell

Если на вашем устройстве была предустановлена Windows 11, 10, 8 или 8.1, вы можете посмотреть ключ предустановленной системы в командной строке. Для этого:

  1. Запустите Терминал Windows от имени администратора (сделать это можно через контекстное меню кнопки «Пуск»), командную строку от имени администратора, Windows PowerShell от имени администратора.
  2. В командной строке используйте команду (впрочем, она же будет работать и в PowerShell)
    wmic path softwarelicensingservice get OA3xOriginalProductKey
    OEM ключ продукта в командной строке

  3. В PowerShell использовать следующий вариант команды
    (Get-WmiObject -query "select * from SoftwareLicensingService").OA3xOriginalProductKey

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

Вы можете получить ключ продукта установленной Windows 11 вручную с помощью следующего скрипта PowerShell:

  1. Создайте текстовый файл с этим кодом и сохраните его (сохраняем в кодировке ANSI/Windows) с расширением ps1
    #Main function
    Function GetWin11Key
    {
    	$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 11")
    		{
    			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 11"
    			}
    		}
    		Else
    		{
    			Write-Warning "Запускайте скрипт в Windows 11"
    		}
    		
    	}
    	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 
    	$isWin11 = [int]($Key[66]/6) -band 1
    	$HF7 = 0xF7
    	$Key[66] = ($Key[66] -band $HF7) -bOr (($isWin11 -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 
    	
      
    }
    GetWin11Key
    
  2. Запустите PowerShell от имени администратора и используйте команду Set-ExecutionPolicy RemoteSigned чтобы разрешить выполнение локальных скриптов. Это можно сделать и без команд: Параметры — Конфиденциальность и защита — Для разработчиков, в разделе «PowerShell» отметить пункт «Измените политику выполнения так, чтобы можно было выполнять локальные сценарии PowerShell без подписи».
  3. Введите полный путь к файлу скрипта в окне PowerShell и нажмите Enter.
  4. Если всё пройдет успешно, вы увидите версию Windows (может отображаться Windows 10 вместо 11), ключ продукта и предложение сохранить его в текстовый файл.
    Просмотр ключа продукта Windows 11 с помощью скрипта PowerShell

Скрипт VBS для просмотра ключа установленной системы

Второй вариант — создать текстовый файл с расширением .VBS, в кодировке ANSI (Windows) и следующим кодом:

Set WshShell = CreateObject("WScript.Shell")
regKey = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
DigitalProductId = WshShell.RegRead(regKey & "DigitalProductId")
Win11ProductName = "Версия Windows 11: " & WshShell.RegRead(regKey & "ProductName") & vbNewLine
Win11ProductID = "ID продукта: " & WshShell.RegRead(regKey & "ProductID") & vbNewLine
Win11ProductKey = ConvertToKey(DigitalProductId)
ProductKeyLabel ="Ключ Windows 11: " & Win11ProductKey
Win11ProductID = Win11ProductName & Win11ProductID & ProductKeyLabel
MsgBox(Win11ProductID)
Function ConvertToKey(regKey)
Const KeyOffset = 52
isWin11 = (regKey(66) \ 6) And 1
regKey(66) = (regKey(66) And &HF7) Or ((isWin11 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 (isWin11 = 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 11, включая ключ продукта.

Ключ продукта Windows 11 с помощью скрипта VBS

Обратите внимание, что в поле «Версия Windows 11» может быть указано: Windows 10 — это не проблема: почему-то на дату написания статьи в реестре Windows 11 хранится именно такая информация о версии.

Другие программы просмотра ключа продукта

На всякий случай ещё две программы, которые позволяют посмотреть ключ продукта Windows 11 или другой версии системы:

  • NirSoft ProduKey — к программе негативно относятся некоторые антивирусы, но в качестве угрозы определяют именно возможность утащить ключи различных продуктов Майкрософт. Так или иначе, гарантий полной безопасности тут дать не могу.
    Ключ продукта Windows 11 в Produkey

  • OEM Product Key Tool — https://neosmart.net/OemKey/ — утилита для просмотра OEM-ключа продукта, изначально для Windows 10, но работает и для Windows При отсутствии OEM-ключа сообщит об ошибке.

Во многих сценариях установки и переустановки Windows 11 ключ продукта пользователю не требуется:

  • Если на ПК или ноутбуке была предустановлена Windows 11 — 8 от производителя, то ключ хранится в UEFI и именно он будет автоматически использован при чистой установке Windows 11 (в случае, если вы устанавливаете систему в UEFI-режиме).
  • Если вы ранее получили Windows 11 путем обновления с предыдущей версии системы или как-то иначе, при этом система активирована с помощью цифровой лицензии (можно посмотреть в «Параметры» — «Система» — «Активация», подробнее: Как проверить статус активации Windows 11), то при чистой установке на этом же компьютере ключ вводить не обязательно: если вы нажмите «У меня нет ключа продукта», выберите ту же редакцию системы, которая была ранее установлена, то после установки и подключения к Интернету она будет активирована автоматически (так как серверы Майкрософт «помнят» о том, что на этом оборудовании была соответствующая лицензия).

Если вы обнаружили, что ваш ключ Windows 11 тот же, что у многих других, и легко ищется в Интернете, это говорит лишь о том, что система использует цифровую лицензию с привязкой к оборудованию, а ключ лишь определяет редакцию ОС (Pro, Домашняя).

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Центр обновления windows групповая политика
  • C windows system32 drivers etc отсутствует файл hosts
  • Plex windows apple tv
  • Lenovo b590 20208 драйвера windows 7
  • Microsoft flight simulator for windows 95