雷猴呀
我们时刻关注全球精品软件和AI技术发展

Win7/Win8.1全新安装Win10工具 密钥一键查询备份

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

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

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

▲图片说明:这幅图的意思并非企业版支持免费升级,而是说本次windows基本使用教程方法同样适用于企业版密钥查询和备份

代码如下:

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 = \"系统名称:\" & objshell.RegRead(Path & \"ProductName\")

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

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

ProductData = ProductName & vbNewLine & ProductID & vbNewLine & ProductKey

\'Show messbox if save to a file

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

Save ProductData

End If

\'Convert binary to chars

Function ConvertToKey(Key)

Const KeyOffset = 52

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

\'Check if OS is Windows 10

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

Key(66) = (Key(66) And &HF7) Or ((isWin10 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

If (isWin10 = 1) Then

keypart1 = Mid(KeyOutput, 2, Last)

insert = \"N\"

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

If Last = 0 Then KeyOutput = insert & KeyOutput

End If

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\\Windows密钥备份.txt\"

Set fso = CreateObject(\"Scripting.FileSystemObject\")

Set txt = fso.CreateTextFile(fName)

txt.Writeline Data

txt.Close

End Function

▲图片说明:代码粘贴到记事本后,另存为.vbs格式

▲图片说明:运行效果,备份密钥会以文本次windows基本使用教程件(.txt)的形式保存到桌面

▲图片说明:保存密钥文件的内容

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

【更多win10使用技巧方法教程请关注繁星软件园为大家精心整理的win10使用攻略】

[db:下载]

赞(0) 打赏
未经允许不得转载:字节律动 » Win7/Win8.1全新安装Win10工具 密钥一键查询备份

评论 抢沙发

字节律动:全球精品软件分享中心

我们为您筛选全球精品优质精品软件同时还关注AI技术领域的发展动态

沪ICP备13019602号-9联系我们

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册