<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>ip Malik - Blog</title>
        <link>http://ip-malik.mozello.com/blog/</link>
        <description>ip Malik - Blog</description>
                    <item>
                <title>How to find out the activation key for Windows</title>
                <link>http://ip-malik.mozello.com/blog/params/post/2451019/page</link>
                <pubDate>Fri, 01 Jan 2021 03:08:00 +0000</pubDate>
                <description>&lt;div&gt;A 25 character product key is used to activate Windows.&lt;/div&gt;&lt;div&gt;It has the form XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.&lt;/div&gt;&lt;div&gt;It is necessary to find out the Windows activation key in several cases. For example, if your laptop or PC has 7 or 8 and you want to upgrade to Windows 10.&lt;/div&gt;&lt;div&gt;There are several ways to do this, consider one of the following.&lt;/div&gt;&lt;div&gt;Let&#039;s use the VBS script first. This, in my opinion, is the simplest way that does not involve the use of third-party applications.&lt;/div&gt;&lt;div&gt;To create the script, we create a plain text document. From an empty space on the desktop, right-click and select New from the context menu. In the additional menu, select the &quot;Text Document&quot; item. Double click the new document and open it, then copy the whole VBS script and paste it into the new document you created. Now click in the upper left corner &quot;File - Save As ..&quot;, here you can give the file any name, for example, &quot;My key&quot;, then write &quot;dot - vbs&quot;, click on the line below and select &quot;All files&quot; &quot;. Click Save and the My Key script will appear on your desktop.&lt;/div&gt;&lt;div&gt;Now double click on it and a message about your activation key will open.&lt;/div&gt;&lt;div&gt;VBS script:&lt;/div&gt;&lt;p&gt;-------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; padding: 9.5px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); border-radius: 4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;&quot;&gt;Set WshShell = CreateObject(&quot;WScript.Shell&quot;)

regKey = &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\&quot;

DigitalProductId = WshShell.RegRead(regKey &amp;amp; &quot;DigitalProductId&quot;)

Win8ProductName = &quot;Windows Product Name: &quot; &amp;amp; WshShell.RegRead(regKey &amp;amp; &quot;ProductName&quot;) &amp;amp; vbNewLine

Win8ProductID = &quot;Windows Product ID: &quot; &amp;amp; WshShell.RegRead(regKey &amp;amp; &quot;ProductID&quot;) &amp;amp; vbNewLine

Win8ProductKey = ConvertToKey(DigitalProductId)

strProductKey =&quot;Windows Key: &quot; &amp;amp; Win8ProductKey

Win8ProductID = Win8ProductName &amp;amp; Win8ProductID &amp;amp; strProductKey

MsgBox(Win8ProductKey)

MsgBox(Win8ProductID)

Function ConvertToKey(regKey)

Const KeyOffset = 52

isWin8 = (regKey(66) \ 6) And 1

regKey(66) = (regKey(66) And &amp;amp;HF7) Or ((isWin8 And 2) * 4)

j = 24

Chars = &quot;BCDFGHJKMPQRTVWXY2346789&quot;

Do

Cur = 0

y = 14

Do

Cur = Cur * 256

Cur = regKey(y + KeyOffset) + Cur

regKey(y + KeyOffset) = (Cur \ 24)

Cur = Cur Mod 24

y = y -1

Loop While y &amp;gt;= 0

j = j -1

winKeyOutput = Mid(Chars, Cur + 1, 1) &amp;amp; winKeyOutput

Last = Cur

Loop While j &amp;gt;= 0

If (isWin8 = 1) Then

keypart1 = Mid(winKeyOutput, 2, Last)

insert = &quot;N&quot;

winKeyOutput = Replace(winKeyOutput, keypart1, keypart1 &amp;amp; insert, 2, 1, 0)

If Last = 0 Then winKeyOutput = insert &amp;amp; winKeyOutput

End If

a = Mid(winKeyOutput, 1, 5)

b = Mid(winKeyOutput, 6, 5)

c = Mid(winKeyOutput, 11, 5)

d = Mid(winKeyOutput, 16, 5)

e = Mid(winKeyOutput, 21, 5)

ConvertToKey = a &amp;amp; &quot;-&quot; &amp;amp; b &amp;amp; &quot;-&quot; &amp;amp; c &amp;amp; &quot;-&quot; &amp;amp; d &amp;amp; &quot;-&quot; &amp;amp; e

End Function&lt;/pre&gt;</description>
            </item>
            </channel>
</rss>