{"id":788,"date":"2019-04-25T18:17:18","date_gmt":"2019-04-25T15:17:18","guid":{"rendered":"https:\/\/www.it-earth.ru\/?p=788"},"modified":"2019-04-25T18:17:18","modified_gmt":"2019-04-25T15:17:18","slug":"%d0%ba%d0%b0%d0%ba-%d1%83%d0%b7%d0%bd%d0%b0%d1%82%d1%8c-%d0%ba%d0%bb%d1%8e%d1%87-%d0%b0%d0%ba%d1%82%d0%b8%d0%b2%d0%b0%d1%86%d0%b8%d0%b8-%d0%be%d1%81-windows-7-8-8-1-10","status":"publish","type":"post","link":"https:\/\/www.it-earth.ru\/?p=788","title":{"rendered":"\u041a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043e\u0441 (Windows 7, 8, 8.1, 10) ?"},"content":{"rendered":"<p> \u041a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043e\u0441 (Windows 7, 8, 8.1, 10) ?<br \/>\n\u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e:<br \/>\n\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0411\u043b\u043e\u043a\u043d\u043e\u0442 (Win + R &#8211;> Notepad <Enter>)<br \/>\n\u041d\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0421\u043a\u0440\u0438\u043f\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c VBScript:<br \/>\n<code><br \/>\nSet WshShell = CreateObject(\"WScript.Shell\")<br \/>\nregKey = \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\\"<\/p>\n<p>DigitalProductId = WshShell.RegRead(regKey & \"DigitalProductId\")<br \/>\n<!--more--><br \/>\nWin8ProductName = \"Windows Product Name: \" & WshShell.RegRead(regKey & \"ProductName\") & vbNewLine<\/p>\n<p>Win8ProductID = \"Windows Product ID: \" & WshShell.RegRead(regKey & \"ProductID\") & vbNewLine<\/p>\n<p>Win8ProductKey = ConvertToKey(DigitalProductId)<\/p>\n<p>strProductKey =\"Windows Key: \" & Win8ProductKey<\/p>\n<p>Win8ProductID = Win8ProductName & Win8ProductID & strProductKey<\/p>\n<p>MsgBox(Win8ProductKey)<\/p>\n<p>MsgBox(Win8ProductID)<\/p>\n<p>Function ConvertToKey(regKey)<\/p>\n<p>    Const KeyOffset = 52<\/p>\n<p>    isWin8 = (regKey(66) \\ 6) And 1<\/p>\n<p>    regKey(66) = (regKey(66) And &HF7) Or ((isWin8 And 2) * 4)<\/p>\n<p>    j = 24<\/p>\n<p>    Chars = \"BCDFGHJKMPQRTVWXY2346789\"<\/p>\n<p>    Do<\/p>\n<p>        Cur = 0<\/p>\n<p>        y = 14<\/p>\n<p>        Do<\/p>\n<p>            Cur = Cur * 256<\/p>\n<p>            Cur = regKey(y + KeyOffset) + Cur<\/p>\n<p>            regKey(y + KeyOffset) = (Cur \\ 24)<\/p>\n<p>            Cur = Cur Mod 24<\/p>\n<p>            y = y -1<\/p>\n<p>        Loop While y >= 0<\/p>\n<p>        j = j -1<\/p>\n<p>        winKeyOutput = Mid(Chars, Cur + 1, 1) & winKeyOutput<\/p>\n<p>        Last = Cur<\/p>\n<p>    Loop While j >= 0<\/p>\n<p>    If (isWin8 = 1) Then<\/p>\n<p>        keypart1 = Mid(winKeyOutput, 2, Last)<\/p>\n<p>        insert = \"N\"<\/p>\n<p>        winKeyOutput = Replace(winKeyOutput, keypart1, keypart1 & insert, 2, 1, 0)<\/p>\n<p>        If Last = 0 Then winKeyOutput = insert & winKeyOutput<\/p>\n<p>    End If<\/p>\n<p>    a = Mid(winKeyOutput, 1, 5)<\/p>\n<p>    b = Mid(winKeyOutput, 6, 5)<\/p>\n<p>    c = Mid(winKeyOutput, 11, 5)<\/p>\n<p>    d = Mid(winKeyOutput, 16, 5)<\/p>\n<p>    e = Mid(winKeyOutput, 21, 5)<\/p>\n<p>    ConvertToKey = a & \"-\" & b & \"-\" & c & \"-\" & d & \"-\" & e<\/p>\n<p>End Function<br \/>\n<\/code><br \/>\n\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c .vbs \u0438 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 ANSI:<br \/>\n\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e &#8211;  (File &#8211;> Save As&#8230; )<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/04\/Untitled-300x225.png\" alt=\"\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-789\" srcset=\"https:\/\/www.it-earth.ru\/wp-content\/uploads\/2019\/04\/Untitled-300x225.png 300w, https:\/\/www.it-earth.ru\/wp-content\/uploads\/2019\/04\/Untitled.png 614w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n\u0412\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 pid  .vbs \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432 \u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 ( ANSI) \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 &#8220;Save&#8221; ().<br \/>\n\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c \u043c\u044b\u0448\u043a\u0438.<br \/>\n<a href=\"https:\/\/itreviews-my.sharepoint.com\/:u:\/g\/personal\/a_antonov_itreviews_ru\/EatFDohx2ghMqrToPJ0cmh0BWeiKvjRYJZEEd01iwszN1Q?e=QuAEmg\" rel=\"noopener noreferrer\" target=\"_blank\">\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/a><\/p>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432: 19<\/p>","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043e\u0441 (Windows 7, 8, 8.1, 10) ?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[181,179,180,178],"class_list":["post-788","post","type-post","status-publish","format-standard","hentry","category-itmemo","tag-181","tag-179","tag-8-1","tag------windows-7"],"_links":{"self":[{"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=\/wp\/v2\/posts\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=788"}],"version-history":[{"count":1,"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=\/wp\/v2\/posts\/788\/revisions"}],"predecessor-version":[{"id":790,"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=\/wp\/v2\/posts\/788\/revisions\/790"}],"wp:attachment":[{"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.it-earth.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}