In cazul în care am instalat Windows 8 sau Windows 8.1, și am rătăcit Product Key, urmam pașii:
1. Cream un fișier txt
2. introducem în el următorul cod:
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
3. Salvam și închidem fișierul
4. renumim extensia din .txt în .vbs
5 Dublu-click (rulam) pe fișier și va apare o fereastra cu Poduct Key care-l avem la Windows-ul instalat.
Știri despre Windows:
- How to prevent your PC from locking automatically on Windows 11
- DOOM: The Dark Ages is already on sale ahead of its release next week — Rip and tear into savings with this deal
- How to preorder the new Surface Pro and Surface Laptop
- Xbox Game Pass gets DOOM: The Dark Ages, Revenge of the Savage Planet, a returning Warhammer game, and more
- The long-awaited second trailer for Grand Theft Auto VI is out NOW — Rockstar Games surprises us all with new GTA6 footage
- I can't believe I'm enjoying Call of Duty: Warzone's new weed-themed limited time game mode this much
- Surface Laptop 13-inch vs. Surface Laptop 7: Which Copilot+ PC is better for you?
- Microsoft unveils new Start menu for Windows 11 with customizable layout and Phone Link integration
- Surface Pro 12-inch vs. Surface Pro 11: Which 2-in-1 Copilot+ PC is better for you?