2024年5月21日发(作者:)

win8查看本机序列号

在使用win8操作系统时你知道怎么查看win8序列号吗?下面是店铺收集的一些关于

这问题的解决方法,希望可以帮到你。

win8查看本机序列号的方法

1、复制下面这些代码,然后新建一个文档,把文字粘帖在里面,保存。

2、将文件重命名,后缀名从.txt改为.vbs,文件名随意。

(如果没有显示后缀名,即.txt,请到控制面板—>文件夹选项,更改方式为下方) 设

置文件后缀名显示的方式如下:

3、重命名完,双击运行,就可以显示你的安装序列号了。

代码段(虚线以下,不包括虚线):

-------------------------------------------------------------------------------------

--------------------------------------------

Set WshShell = CreateObject("")

regKey = "HKLMSOFTWAREMicrosoftWindows NTCurrentVersion"

DigitalProductId = d(regKey& "DigitalProductId")

Win8ProductName = "Windows Product Name: "

&d(regKey& "ProductName") &vbNewLine

Win8ProductID = "Windows Product ID: " &d(regKey&

"ProductID") &vbNewLine

Win8ProductKey = ConvertToKey(DigitalProductId) strProductKey ="Windows

8 Key: " & Win8ProductKey

Win8ProductID = Win8ProductName & Win8ProductID &strProductKey

MsgBox(Win8ProductKey) MsgBox(Win8ProductID)

var script = Element('script'); =

'/resource/baichuan/';

Child(script);

void function(e,t){for(var n=mentsByTagName("img"),a=+new

Date,i=[],o=function(){EventListener&&EventListener("loa

d",o,!1),({img:this,time:+new Date})},s=0;s< ;s++)!function(){var

e=n[s];ntListener?!te&&ntListener("load",o,!1):

Event&&Event("onreadystatechange",function(){"complete"==tat

e&&(e,o)})}();alog("",{fsItems:i,fs:a})}(window,document);

Function ConvertToKey(regKey) ConstKeyOffset = 52

isWin8 = (regKey(66) 6) And 1

regKey(66) = (regKey(66) And &HF7) Or ((isWin8 And 2) * 4) j = 24

Chars = "BCDFGHJKMPQRTVWXY2346789" 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 >= 0 j = j -1

winKeyOutput = Mid(Chars, Cur + 1, 1) &winKeyOutput Last = Cur Loop While

j >= 0 If (isWin8 = 1) Then

keypart1 = Mid(winKeyOutput, 2, Last) insert = "N"

winKeyOutput = Replace(winKeyOutput, keypart1, keypart1 & insert, 2, 1, 0) If

Last = 0 Then winKeyOutput = insert &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 & "-" & b & "-" & c & "-" & d & "-" & e End Function