当前位置: 首页 > 系统教程 > Windows10系统教程 > 详细页面

Win7/Win8.1密钥升级Win10:密钥一键查询备份

发布时间:2018-09-15 14:05:27 文章来源:windows7旗舰版 作者: 电子学知识

'Get current user name

j = 14

If Last = 0 Then KeyOutput = insert & KeyOutput

Set objshell = CreateObject("wscript.shell")

ProductKey = "已安装密钥:" & ConvertToKey(DigitalID)

Loop While j >= 0

insert = "N"

Set txt = fso.CreateTextFile(fName)

Dim objshell,path,DigitalID, Result

Set fso = CreateObject("Scripting.FileSystemObject")

Current=Current Mod 24

Option Explicit

2016年7月29日,微软关闭 Win7 /Win8.1 免费升级Win10的通道,此时如果还有用户想升级 Windows10 但没有升级的,可以尝试使用本文方法进行全新安装。全新安装的好处就是不会产生新旧系统各种衔接不畅的问题,虽说现在升级安装Win10后的体验不像一年前那么差了,但这种本质性的差异是Windows系统升级安装的通病,很难避免。

Dim isWin10, Maps, i, j, Current, KeyOutput, Last, keypart1, insert

Do

UserName = objshell.ExpandEnvironmentStrings("%UserName%")

2、代码粘贴到记事本后,另存为.vbs格式;

上述Win7/Win8.1密钥升级Win10系统备份,有想要升级的用户可参考本教程,当然还有其他升级方法。

Windows7软件版本:MW20170413Android软件立即查看  

3、运行效果,备份密钥会以文本文件(.txt)的形式保存到桌面;

Function ConvertToKey(Key)

'Get ProductName, ProductID, ProductKey

Key(j + KeyOffset) = (Current \ 24)

Dim fso, fName, txt,objshell,UserName

End If

KeyOutput = Mid(Maps,Current+ 1, 1) & KeyOutput

Save ProductData

4、保存密钥文件的内容。

ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5)

'Create a text file on desktop

If (isWin10 = 1) Then

Last = Current

Current = Key(j + KeyOffset) + Current

fName = "C:\Users\" & UserName & "\Desktop\Windows密钥备份.txt"

Dim ProductName,ProductID,ProductKey,ProductData

isWin10 = (Key(66) \ 6) And 1

Function Save(Data)

End If

'Check if OS is Windows 10

keypart1 = Mid(KeyOutput, 2, Last)

txt.Writeline Data

End Function

Current = Current* 256

1、图片说明:这幅图的意思并非企业版支持免费升级,而是说本文方法同样适用于企业版密钥查询和备份;

'Set registry key path

  windows7系列软件最新版本下载  

当然,免费激活这事可能还是直接升级的更保险,因为一般来说升级之前的系统都是激活好了的,虽然大家激活系统方式可谓“条条大路通罗马”吧,但微软一般也没计较什么,都给予了激活状态的Win10。不过使用全新安装再输入产品密钥的方式可能更适合正版用户,或者自己手中有合法密钥(至少密钥没被封禁)的用户。如果你能够确认手中的密钥没有问题,windows732位系统哪个好,操作上很简单,只需要把如下代码使用记事本等保存为.vbs格式(文件名自拟),双击运行即可,适用于Win7/Win8.1/Win10系统。

ProductData = ProductName & vbNewLine & ProductID & vbNewLine & ProductKey

ProductName = "系统名称:" & objshell.RegRead(Path & "ProductName")

txt.Close

'Registry key value

End Function

i = i -1

Do

当然,windows7u盘重装系统步骤,自己手动新建文件,复制和粘贴代码再保存怪麻烦的,所以各位直接在下方下载现成的文件就省心了,下来之后直接运行。

windows7系统下载软件版本:简体中文版系统工具立即查看
 

Loop While i >= 0

Win7激活工具(windows7激活工具旗舰版)软件版本:1.0系统工具立即查看
 

'Convert binary to chars

j = j -1

KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)

Maps = "BCDFGHJKMPQRTVWXY2346789"

'Show messbox if save to a file

Key(66) = (Key(66) And &HF7) Or ((isWin10 And 2) * 4)

'Save data to a file

代码如下:

If vbYes = MsgBox(ProductData & vblf & vblf & "要将密钥保存到文件吗?", vbYesNo + vbQuestion, "软媒魔方备份Windows密钥信息") then

ProductID = "产品ID:" & objshell.RegRead(Path & "ProductID")

Current= 0

Windows 产品密钥查询备份文件: 网盘下载 (2KB)

i = 24

DigitalID = objshell.RegRead(Path & "DigitalProductId")

Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"

Const KeyOffset = 52

Set objshell = CreateObject("WScript.Shell")

综上所述,这就是windows7旗舰版的本文作者:电子学知识给你们提供的Win7/Win8.1密钥升级Win10:密钥一键查询备份了,所写的原创文章仅此参考,觉得这篇文章不错就可以分享给身边的朋友,欢迎点评,版权声明:如若转载,请注明:windows7旗舰版,谢谢!

本文章关键词: 密钥一键查询备
相关文章
返回windows7系统下载首页
60