如何查看 Windows7、8、10 安装序列号/密匙

如题,怎样找回/查看目前已激活 Windows 序列号以便重装后激活。有些品牌机在机箱会有一块贴纸,上面有序列号,如果没有贴纸,可以用下面两个方法查看。

VBS 脚本查看 Windows7、8、10 安装序列号

原文:老丁 - 如何查看Windows7、8、10的序列号

打开记事本,复制下面代码到记事本,然后以 VBS 文件扩展名保存文件,管理员运行此文件即可。

代码:▼展开

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 if save to a file
If vbYes = MsgBox(ProductData & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "BackUp Windows Key Information") then
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
keypart1 = Mid(KeyOutput, 2, Last)
insert = "N"
KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
If Last = 0 Then KeyOutput = insert & KeyOutput
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

或者直接下载脚本执行:windows-serial.rar(解压密码:cyhour)

ProduKey 查看 Windows 系统安装序列号/密钥(支持Office/VS等)

ProduKey 是一款免费绿色免安装实用 Windows 系统安装序列号/激活密钥查看器软件!支持中文,无需联网,它只能显示目前电脑上已经安装好的软件产品(正版或非正版的 Windows 系统密钥以及 Office、Visual Studio、Exchange Server 等)密钥。

在需要重装系统时帮你一个大忙!特别是给预装了正版系统的笔记本重装时也能快速找回全部产品序列号……

ProduKey 支持找回序列号产品列表

  • Microsoft Windows 98/ME
  • Microsoft Windows 2000
  • Microsoft Windows NT
  • Microsoft Windows XP
  • Microsoft Windows Vista
  • Microsoft Windows Server 2003
  • Microsoft Windows 7 (Doesn't work with Microsoft Volume Licensing)
  • Microsoft Windows 8 (Doesn't work with Microsoft Volume Licensing)
  • Microsoft Windows 10 (Doesn't work with all types of licenses)
  • Microsoft Office 2000 (Only ProductID is displayed)
  • Microsoft Office 2003
  • Microsoft Office 2007
  • Microsoft Office 2010
  • Microsoft SQL Server 2000
  • Microsoft SQL Server 2005
  • Microsoft Exchange Server 2000
  • Microsoft Exchange Server 2003
  • Visual Studio
  • Some of the Adobe and Autodesk products.

备用下载:1076-ProduKey-V1.93.rar(解压密码:cyhour)

除非注明,常阳时光文章均为原创,本文地址 https://cyhour.com/1076/ 转载时必须以链接形式注明原始出处。
Vultr 送$25,搬瓦工年付最低$49,优惠码 BWH34QMFYT2R,更多推荐VPS信息,或支持老杨
Views: 630 Tags:  ,  ,  ,  , 

Comments:0

发表留言

Vultr 送$25,搬瓦工年付最低$49,优惠码 BWH34QMFYT2R,更多推荐VPS信息