Click here to Skip to main content
15,920,217 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How much code is too much? Pin
musefan12-Jan-20 21:35
musefan12-Jan-20 21:35 
QuestionWindows 10 activation woes (after hardware upgrade) Pin
Maximilien9-Jan-20 11:59
Maximilien9-Jan-20 11:59 
AnswerRe: Windows 10 activation woes (after hardware upgrade) Pin
PIEBALDconsult9-Jan-20 12:23
mvePIEBALDconsult9-Jan-20 12:23 
AnswerRe: Windows 10 activation woes (after hardware upgrade) Pin
Ravi Bhavnani9-Jan-20 12:53
professionalRavi Bhavnani9-Jan-20 12:53 
AnswerRe: Windows 10 activation woes (after hardware upgrade) Pin
Ron Anders9-Jan-20 15:43
Ron Anders9-Jan-20 15:43 
AnswerRe: Windows 10 activation woes (after hardware upgrade) Pin
OriginalGriff9-Jan-20 19:50
mveOriginalGriff9-Jan-20 19:50 
AnswerRe: Windows 10 activation woes (after hardware upgrade) Pin
Jacquers9-Jan-20 20:05
Jacquers9-Jan-20 20:05 
AnswerRe: Windows 10 activation woes (after hardware upgrade) Pin
OriginalGriff9-Jan-20 20:17
mveOriginalGriff9-Jan-20 20:17 
This might interest you - it's a VBScript file he left on my computer which fetches the Win 10 key:
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 and save to a file  

If vbYes = MsgBox(ProductData  & vblf & vblf, vbOK + vbInformation, "BackUp Windows Key Information") then 

   Save ProductData  

Else

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

If I recall correctly, he used this and entered it on the activation screen. I'd forgotten about that.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!

General30 days of winning Pin
honey the codewitch9-Jan-20 10:57
mvahoney the codewitch9-Jan-20 10:57 
GeneralRe: 30 days of winning Pin
Super Lloyd9-Jan-20 11:51
Super Lloyd9-Jan-20 11:51 
GeneralRe: 30 days of winning Pin
Johnny J.9-Jan-20 20:51
professionalJohnny J.9-Jan-20 20:51 
GeneralRe: 30 days of winning Pin
jsc429-Jan-20 23:59
professionaljsc429-Jan-20 23:59 
GeneralRe: 30 days of winning Pin
Johnny J.10-Jan-20 0:16
professionalJohnny J.10-Jan-20 0:16 
GeneralRe: 30 days of winning Pin
PIEBALDconsult9-Jan-20 14:32
mvePIEBALDconsult9-Jan-20 14:32 
GeneralRe: 30 days of winning Pin
John R. Shaw9-Jan-20 17:45
John R. Shaw9-Jan-20 17:45 
GeneralRe: 30 days of winning Pin
honey the codewitch9-Jan-20 18:49
mvahoney the codewitch9-Jan-20 18:49 
GeneralRe: 30 days of winning Pin
John R. Shaw17-Jan-20 2:07
John R. Shaw17-Jan-20 2:07 
GeneralRe: 30 days of winning Pin
Jörgen Andersson9-Jan-20 20:07
professionalJörgen Andersson9-Jan-20 20:07 
GeneralRe: 30 days of winning Pin
dandy7210-Jan-20 2:39
dandy7210-Jan-20 2:39 
GeneralRe: 30 days of winning Pin
John R. Shaw17-Jan-20 2:16
John R. Shaw17-Jan-20 2:16 
GeneralRe: 30 days of winning Pin
dandy7217-Jan-20 4:38
dandy7217-Jan-20 4:38 
GeneralJSON is better than XML Pin
Christian Graus9-Jan-20 10:43
protectorChristian Graus9-Jan-20 10:43 
GeneralRe: JSON is better than XML Pin
honey the codewitch9-Jan-20 10:55
mvahoney the codewitch9-Jan-20 10:55 
GeneralRe: JSON is better than XML Pin
Christian Graus9-Jan-20 11:00
protectorChristian Graus9-Jan-20 11:00 
GeneralRe: JSON is better than XML Pin
honey the codewitch9-Jan-20 11:37
mvahoney the codewitch9-Jan-20 11:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.