web-dev-qa-db-fra.com

Où est la clé de licence Windows sur Windows 10?

J'ai reçu un nouvel ordinateur portable; Il est venu avec une installation Windows existante, mais je voulais migrer ma sauvegarde actuelle sur la nouvelle machine. I dd- ed les partitions de la nouvelle machine à un lecteur externe:

/dev/nvme0n1p1
/dev/nvme0n1p2
/dev/nvme0n1p3
/dev/nvme0n1p4

et ensuite déplacer mes partitions actuelles à la nouvelle machine. Ce qui a suivi était un cauchemar de taille moyenne. La nouvelle machine démarrerait, mais les pilotes de réseau sans fil n'ont pas été reconnus et ont été découverts plus tard (au meilleur de ma connaissance), ils ne pouvaient pas être installés. J'ai essayé:

  • démarrer à partir de la console et fonctionnant:

    sfc /scannow
    chkdsk C: /f /r /x
    

    tous deux semblaient avoir terminé avec succès, mais la machine serait maintenant bloquée dans une boucle de réparation de démarrage.

  • J'ai essayé de réinitialiser la machine (tout en gardant mes fichiers), mais cela a échoué à mi-chemin.

  • maintenant, la machine est toujours bloquée dans la boucle et a décidé d'essayer de le réparer de manière externe à l'aide d'une vitrine amorçable 10 image . Il est probable que j'ai besoin de la clé Windows 10 de la nouvelle machine. Je ne sais pas si c'est stocké dans le BIOS (il est venu avec Windows 10 préinstallé) ou quelque part sur les partitions.

Comment puis-je obtenir la clé de la partition (si elle est là du tout) lors du démarrage d'une image Linux?

31
Sebi

Si Windows 10 a été activé sur cet ordinateur, on se souvient maintenant des serveurs d'activation Microsoft à l'aide de son empreinte digitale matérielle.

Il n'y aura pas de problème à installer Windows 10 sur cet ordinateur et l'activation sera automatique. Vous n'avez pas besoin de rechercher la clé.

51
harrymc

Vous pouvez utiliser le script suivant stocké comme script2.vbs

Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
ProductName = "Product Name: " & objshell.RegRead(Path & "ProductName")
ProductID = "Product ID: " & objshell.RegRead(Path & "ProductID")
ProductKey = "Installed Key: " & ConvertToKey(DigitalID)
ProductData = ProductName & vbNewLine & ProductID & vbNewLine & ProductKey
'Show messbox if save to a file
If vbYes = MsgBox(ProductData & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "BackUp Windows Key Information") then
Save ProductData
End If
'Convert binary to chars
Function ConvertToKey(Key)
Const KeyOffset = 52
Dim isWin8, Maps, i, j, Current, KeyOutput, Last, keypart1, insert
'Check if OS is Windows 8
isWin8 = (Key(66) \ 6) And 1
Key(66) = (Key(66) And &HF7) Or ((isWin8 And 2) * 4)
i = 24
Maps = "BCDFGHJKMPQRTVWXY2346789"
Do
Current= 0
j = 14
Do
Current = Current* 256
Current = Key(j + KeyOffset) + Current
Key(j + KeyOffset) = (Current \ 24)
Current=Current Mod 24
j = j -1
Loop While j >= 0
i = i -1
KeyOutput = Mid(Maps,Current+ 1, 1) & KeyOutput
Last = Current
Loop While i >= 0

If (isWin8 = 1) Then
keypart1 = Mid(KeyOutput, 2, Last)
insert = "N"
KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
If Last = 0 Then KeyOutput = insert & KeyOutput
End If
ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5)
End Function
'Save data to a file
Function Save(Data)
Dim fso, fName, txt,objshell,UserName
Set objshell = CreateObject("wscript.Shell")
'Get current user name
UserName = objshell.ExpandEnvironmentStrings("%UserName%")
'Create a text file on desktop
fName = "C:\Users\" & UserName & "\Desktop\WindowsKeyInfo.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set txt = fso.CreateTextFile(fName)
txt.Writeline Data
txt.Close
End Function

Cela vous donnera le nom du produit, l'ID de produit et la clé installée.

4
ignVarl

Je suis toujours allé à Belarc.com, téléchargeant et exécutant le conseiller. Ceci trouve chaque code de clé sur le PC.

1
A G S