忘记Windows10产品密钥不用怕 windows8密钥

Windows8密钥(不要害怕忘记Windows10产品密钥)
Windows产品密钥是一个非常重要的密码,在我们重新安装和激活操作系统时,必须由资源网络使用 。如果我们丢失或忘记了Windows产品密钥,会给我们带来很大的麻烦 。
我将在下面提供一个解决方案,您将看到如何使用简单的VBS脚本来显示已安装的Windows 10、Windows 8或Windows 7系统的产品密钥 。这是一个非常简单的解决方案,可以从安装在计算机上的操作系统中提取产品密钥,而无需使用任何第三方软件 。
与其他方法相比,这种VBScript解决方案几乎是完美的,用户只需要点击文件 。

首先,创建一个脚本文件 。要查看计算机上安装的Windows 10产品密钥,请执行以下操作:
【忘记Windows10产品密钥不用怕 windows8密钥】1.打开记事本 。
2.将以下文本复制并粘贴到记事本窗口中:
OptionExplicitDimobjshell,path,DigitalID,ResultSetobjshell=CreateObject("WScript.Shell")'SetregistrykeypathPath="HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\"'RegistrykeyvalueDigitalID=objshell.RegRead(Path&"DigitalProductId")DimProductName,ProductID,ProductKey,ProductData'GetProductName,ProductID,ProductKeyProductName="ProductName:"&objshell.RegRead(Path&"ProductName")ProductID="ProductID:"&objshell.RegRead(Path&"ProductID")ProductKey="InstalledKey:"&ConvertToKey(DigitalID)ProductData=http://www.laomaozy.com/W-Z/ProductName&vbNewLine&ProductID&vbNewLine&ProductKey'ShowmessboxifsavetoafileIfvbYes=MsgBox(ProductData&vblf&vblf&"Savetoafile?",vbYesNo+vbQuestion,"BackUpWindowsKeyInformation")thenSaveProductDataEndIf'ConvertbinarytocharsFunctionConvertToKey(Key)ConstKeyOffset=52DimisWin8,Maps,i,j,Current,KeyOutput,Last,keypart1,insert'CheckifOSisWindows8isWin8=(Key(66)\6)And1Key(66)=(Key(66)And&HF7)Or((isWin8And2)*4)i=24Maps="BCDFGHJKMPQRTVWXY2346789"DoCurrent=0j=14DoCurrent=Current*256Current=Key(j+KeyOffset)+CurrentKey(j+KeyOffset)=(Current\24) 资源网;Current=CurrentMod24资源网j=j-1LoopWhilej>=0i=i-1KeyOutput=Mid(Maps,Current+1,1)&KeyOutputLast=CurrentLoopWhilei>=0If(isWin8=1)Thenkeypart1=Mid(KeyOutput,2,Last)insert="N"KeyOutput=Replace(KeyOutput,keypart1,keypart1&insert,2,1,0)IfLast=0ThenKeyOutput=insert&KeyOutputEndIfConvertToKey=Mid(KeyOutput,1,5)&"-"&Mid(KeyOutput,6,5)&"-"&Mid(KeyOutput,11,5)&"-"&Mid(KeyOutput,16,5)&"-"&Mid(KeyOutput,21,5)EndFunction'SavedatatoafileFunctionSave(Data)Dimfso,fName,txt,objshell,UserNameSetobjshell=CreateObject("wscript.shell")'GetcurrentusernameUserName=objshell.ExpandEnvironmentStrings("%UserName%")'CreateatextfileondesktopfName="C:\Users\"&UserName&"\Desktop\WindowsKeyInfo.txt"Setfso=CreateObject("Scripting.FileSystemObject")Settxt=fso.CreateTextFile(fName)txt.WritelineDatatxt.CloseEndFunction3.点击“文件-另存为”命令,在“保存类型”中选择“所有文件”,将上述“文件名”中的文本保存到一个带有的文件中 。vbs"扩展 。文件名可以随意命名 。

提示:确保文件带有扩展名” 。如果“vbs”保存正确,您可以键入文件名并用双引号括起来,例如“BackupWindowsKey.vbs” 。
其次,查看/备份Windows10产品密钥 。现在打开BackupWindowsKey.vbs文件 。看,Windows10产品密钥会显示在屏幕上!写下来,放在安全的地方 。

如果你想直接下载BackupWindowsKey.vbs文件,请关注我,然后发私信“密钥脚本” 。
我在Windows 7、Windows 8和Windows 10上测试了这种技术,它在所有提到的操作系统中都能完美工作 。


    推荐阅读