win8查看本機(jī)序列號
在使用win8操作系統(tǒng)時你知道怎么查看win8序列號嗎?下面是學(xué)習(xí)啦小編收集的一些關(guān)于這問題的解決方法,希望可以幫到你。
win8查看本機(jī)序列號的方法
1、復(fù)制下面這些代碼,然后新建一個文檔,把文字粘帖在里面,保存。
2、將文件重命名,后綴名從.txt改為.vbs,文件名隨意。
(如果沒有顯示后綴名,即.txt,請到控制面板—>文件夾選項,更改方式為下方) 設(shè)置文件后綴名顯示的方式如下:
3、重命名完,雙擊運(yùn)行,就可以顯示你的安裝序列號了。
代碼段(虛線以下,不包括虛線):
---------------------------------------------------------------------------------------------------------------------------------
Set WshShell = CreateObject("WScript.Shell")
regKey = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" DigitalProductId = WshShell.RegRead(regKey& "DigitalProductId")
Win8ProductName = "Windows Product Name: " &WshShell.RegRead(regKey& "ProductName") &vbNewLine
Win8ProductID = "Windows Product ID: " &WshShell.RegRead(regKey& "ProductID") &vbNewLine
Win8ProductKey = ConvertToKey(DigitalProductId) strProductKey ="Windows 8 Key: " & Win8ProductKey
Win8ProductID = Win8ProductName & Win8ProductID &strProductKey
MsgBox(Win8ProductKey) MsgBox(Win8ProductID)
var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/baichuan/ns.js'; document.body.appendChild(script);
void function(e,t){for(var n=t.getElementsByTagName("img"),a=+new Date,i=[],o=function(){this.removeEventListener&&this.removeEventListener("load",o,!1),i.push({img:this,time:+new Date})},s=0;s< n.length;s++)!function(){var e=n[s];e.addEventListener?!e.complete&&e.addEventListener("load",o,!1):e.attachEvent&&e.attachEvent("onreadystatechange",function(){"complete"==e.readyState&&o.call(e,o)})}();alog("speed.set",{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