Applies ToWindows 11 Windows 10 Windows 8.1 Windows 7 Microsoft account dashboard
A Windows product key is a 25-character code used to activate Windows. It looks like this:
-
PRODUCT KEY: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Locate your product key for Windows 10 or Windows 11
Depending on how you got your copy of Windows 10 or Windows 11, you’ll need either a 25-character product key or a digital license to activate it. A digital license is a method of activation in Windows 10 and Windows 11 that doesn’t require you to enter a product key. Without one of these, you won’t be able to activate your device.
Where to find your product key depends on how you got your copy of Windows.
Select any of the following to see more information:
The product key is preinstalled on your PC, included with the packaging the PC came in, or included on the Certificate of Authenticity (COA) attached to the PC. For more info, contact your hardware manufacturer, and for pictures of authentic product keys and COA labels, see How to tell your hardware is genuine.
The product key is on a label or card inside the box that Windows came in. For more info, contact the retailer that sold you Windows 10 or Windows 11. How to tell your software is genuine.
Find your product key in the confirmation email you received after buying Windows 10 or Windows 11 in a digital locker accessible through the retailer’s website.
The product key is in the confirmation email you received after buying your digital copy of Windows. Microsoft only keeps a record of product keys if you purchased from the Microsoft online store. You can find out if you purchased from Microsoft in your Microsoft account Order history.
If you upgraded to Windows 11 for free from Windows 10, or upgraded to Windows 10 for free from Windows 7 or Windows 8.1, you should have a digital license instead of a product key.
If you bought Windows 10 or Windows 11 Pro upgrade in the Microsoft Store app, you’ll receive a digital license instead of a product key in the confirmation email that was sent to confirm the purchase. That email address (MSA) will contain the digital license. You can use the digital license for activation.
For more information about digital licenses and product keys in Windows 10 and Windows 11, see the “Methods of Activation” section in Activate Windows.
Locate your product key for Windows 7 or Windows 8.1
A product key is usually required when uninstalling or reinstalling Windows 7 or Windows 8.1. Generally, if you bought a physical copy of Windows, the product key should be on a label or card inside the box that Windows came in. If Windows came preinstalled on your PC, the product key should appear on a sticker on your device. If you’ve lost or can’t find the product key, contact the manufacturer. To ensure your product key is genuine, see How to tell your software is genuine and How to tell your hardware is genuine.
Related links
For info about how to tell if your copy of Windows is genuine Microsoft software, see the How to tell page.
Need more help?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Все способы:
- Способ 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Полезные советы и помощь
Сразу после выхода новой ОС, все стали интересоваться, как узнать ключ установленной 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, а также других утилитах для просмотра характеристик компьютера можно узнать эту информацию. Но, уверен, тех способов, что описаны здесь, будет достаточно практически в любой ситуации.
Лицензионный ключ можно узнать, с помощью классической командной строки, использованием нужного скрипта, оболочки PowerShell или с помощью внешних приложений. Так же необходимо понимать разницу между Install Key и OEM Key.
Находим ключ активации Windows 10 с помощью PowerShell
- Выясняем информацию без использования сторонних программ
- Сохраняем файл. Меняем ему расширение на .ps1
- Набираем в поиске Виндовс PowerShell, и кликнув по нему правой кнопкой мыши выбираем Запустить от имени администратора.
- В PowerShell вводим следующую команду: Set-ExecutionPolicy RemoteSigned и подтверждаем «Y» и «Enter.
- Вводим команду: Import-Module C:\key.ps1 (указывая путь к сохранённому файлу со скриптом).
- Вводим команду Get-WindowsKey, после этого выведется вся необходимая информация об активации и установленной на компьютере операционной системе.
Откройте блокнот и вставьте туда следующий текст:
function Get-WindowsKey {
param ($targets = “.”)
$hklm = 2147483650
$regPath = “Software\Microsoft\Windows NT\CurrentVersion”
$regValue = “DigitalProductId”
Foreach ($target in $targets) {
$productKey = $null
$win32os = $null
$wmi = [WMIClass]”\\$target\root\default:stdRegProv”
$data = $wmi.GetBinaryValue($hklm,$regPath,$regValue)
$binArray = ($data.uValue)[52..66]
$charsArray = “B”,”C”,”D”,”F”,”G”,”H”,”J”,”K”,”M”,”P”,”Q”,”R”,”T”,”V”,”W”,”X”,”Y”,”2″,”3″,”4″,”6″,”7″,”8″,”9″
## decrypt base24 encoded binary data
For ($i = 24; $i -ge 0; $i–) {
$k = 0
For ($j = 14; $j -ge 0; $j–) {
$k = $k * 256 -bxor $binArray[$j]
$binArray[$j] = [math]::truncate($k / 24)
$k = $k % 24
}
$productKey = $charsArray[$k] + $productKey
If (($i % 5 -eq 0) -and ($i -ne 0)) {
$productKey = “-” + $productKey
}
}
$win32os = Get-WmiObject Win32_OperatingSystem -computer $target
$obj = New-Object Object
$obj | Add-Member Noteproperty Computer -value $target
$obj | Add-Member Noteproperty Caption -value $win32os.Caption
$obj | Add-Member Noteproperty CSDVersion -value $win32os.CSDVersion
$obj | Add-Member Noteproperty OSArch -value $win32os.OSArchitecture
$obj | Add-Member Noteproperty BuildNumber -value $win32os.BuildNumber
$obj | Add-Member Noteproperty RegisteredTo -value $win32os.RegisteredUser
$obj | Add-Member Noteproperty ProductID -value $win32os.SerialNumber
$obj | Add-Member Noteproperty ProductKey -value $productkey
$obj
}
}
Просмотр в ShowKeyPlus ключей Windows 10
Программа ShowKeyPlus не требует установки и показывает сразу два ключа: установленной в текущий момент системы и OEM в UEFI.
Запускаем программу и смотрим отображаемые данные:
- Installed Key — ключ установленной системы.
- OEM Key (Original Key) — ключ из UEFI.
Просмотр с помощью скрипта VBS информации об активации установленной 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.
Узнаем информацию об активации Виндовс с помощью ProduKey
Запускаем программу и в главном окне ProduKey появится информация о серийных номерах установленного ПО:
Статья подготовлена при участии
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.
-
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.
-
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
-
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.
-
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]
Advertisement
-
Click the Windows Start menu
. 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.
-
This displays the Command Prompt in the Windows Start menu.
-
Open the Command Prompt as an administrator
. 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.
-
To display your product key, type the following command and press Enter.[3]
- wmic path softwareLicensingService get OA3xOriginalProductKey
-
Your product key is the 25-letter key displayed under the text that says «OA3xOriginalProductKey.»
-
You can either take a screenshot of the results or write down the key to ensure you have access to it if needed.
Advertisement
-
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.
-
This will open PowerShell as an administrator.
- You must be logged into Windows with an administrative account in order run PowerShell as an administrator.
-
The command is as follows:[4]
- powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"
-
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]
- 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]
-
You can either take a screenshot of the results or write down the key to ensure you have access to it if needed.
Advertisement
-
Pressing the Windows key and R at the same time will open the Run program. This will work on both Windows 10 and 11.
-
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.
-
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.
-
This displays all the files within this folder in the large panel on the right.
-
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]
-
You can either take a screenshot of the results or write down the key to ensure you have access to it if needed.
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.