Windows 10: Difference between revisions
From Andreida
(Created page with "= Activation = == Is your Windows 10 using a "product key" or a "digital license"? == * Right click the start button * Select "System" * Select "Home" (upper left) * Select "...") |
|||
Line 1: | Line 1: | ||
<span style="color: Red"> Nothing on this page has been verified so far. </span> |
|||
= Activation = |
= Activation = |
||
Revision as of 03:37, 6 January 2019
Nothing on this page has been verified so far.
Activation
Is your Windows 10 using a "product key" or a "digital license"?
- Right click the start button
- Select "System"
- Select "Home" (upper left)
- Select "Update & Security"
- Select "Activation"
Look for a text like
Windows is activated with a digital license
In case of a "digital license", you don't need to care about a "product key", you can just reinstall this pc and skip the dialog, where you are asked to enter a "product key".
Get product key from installed Windows 10
Get Windows 10 product key from the UEFI firmware
powershell (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
Get Windows 10 product key from the registry
Create productkey.vbs
Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Function ConvertToKey(Key) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 x = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Key(x + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 x = x -1 Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -1) Then i = i -1 KeyOutput = "-" & KeyOutput End If Loop While i >= 0 ConvertToKey = KeyOutput End Function