Jump to content

Lost my op system serial number

Donald 2

Im trying to install my ssd, but I have to reinstall my op system on the ssd. if I lost the serial number, where can I find the key? I heard you could find it in settings, if that is true, where??

Link to comment
Share on other sites

Link to post
Share on other sites

I have a script that Microsoft gave me to to get the code save it as a .vbs file

Set WshShell = CreateObject("WScript.Shell")
Key = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
DigitalID = WshShell.RegRead(key & "DigitalProductId")
ProductName = "Product Name: " & WshShell.RegRead(Key & "ProductName") & vbNewLine
ProductID = "Product ID: " & WshShell.RegRead(Key & "ProductID") & vbNewLine
ProductKey = "Installed Key: " & ConvertToKey(DigitalID)
ProductID = ProductName & ProductID & ProductKey
If vbYes = MsgBox(ProductId & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "Windows Key Information") then
   Save ProductID
End if
Function ConvertToKey(Key)
    Const KeyOffset = 52
    isWin8 = (Key(66) \ 6) And 1
    Key(66) = (Key(66) And &HF7) Or ((isWin8 And 2) * 4)
    i = 24
    Chars = "BCDFGHJKMPQRTVWXY2346789"
    Do
        Cur = 0
        X = 14
        Do
            Cur = Cur * 256
            Cur = Key(X + KeyOffset) + Cur
            Key(X + KeyOffset) = (Cur \ 24)
            Cur = Cur Mod 24
            X = X -1
        Loop While X >= 0
        i = i -1
        KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
        Last = Cur
    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
    a = Mid(KeyOutput, 1, 5)
    b = Mid(KeyOutput, 6, 5)
    c = Mid(KeyOutput, 11, 5)
    d = Mid(KeyOutput, 16, 5)
    e = Mid(KeyOutput, 21, 5)
    ConvertToKey = a & "-" & b & "-" & c & "-" & d & "-" & e
End Function
Function Save(Data)
    Const ForWRITING = 2
    Const asASCII = 0
    Dim fso, f, fName, ts
    fName = "Windows Key.txt"
   Set fso = CreateObject("Scripting.FileSystemObject")
    fso.CreateTextFile fName
    Set f = fso.GetFile(fName)
    Set f = f.OpenAsTextStream(ForWRITING, asASCII)
    f.Writeline Data
    f.Close
End Function

 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, tp95112 said:

Microsoft gave me

Damn there actullay competent?

 

5 minutes ago, tp95112 said:

I have a script that Microsoft gave me to to get the code save it as a .vbs file

I have a script that Microsoft gave me to, to get the code save it as a .vbs file

Put a comma there othewise it's really confusing to read

 

My life

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Himommies said:

Damn there actullay competent?

 

I have a script that Microsoft gave me to, to get the code save it as a .vbs file

Put a comma there othewise it's really confusing to read

 

I added the last part after so I forgot the comma

Link to comment
Share on other sites

Link to post
Share on other sites

Just use a free software like Macrium Reflect to copy the drives.

CPU: Ryzen 5 1600 MOBO: MSI Tomahawk B350 GPU: Reference cooled GTX 980 Storage: Intel SSD5 256Gb RAM: 8gb Geil EVO Potenza Case:  Phanteks p300 PSU: EVGA 500 watt CPU Cooler: AMD wraith spire

 

 

Steam: maxarooni4

Battle.net: MAX

 

If you have an Oculus HMU in dead and buried   

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×