如何备份windows7激活文件以激活windows10?

如何备份windows7激活文件以激活windows10?,第1张

一、在你激活的系统中打开下载的Win10 ISO镜像,在Sources文件夹中找到gatherosstate.exe程序,把它复制到桌面。\x0d\x0a\x0d\x0a2、双击gatherosstate.exe,稍后会在桌面生成名为GenuineTicket.xml的文件(名字翻译过来就是“正版通行证”)。将此文件拷贝至U盘或者硬盘其他文件夹即可。\x0d\x0a\x0d\x0a3、\x0d\x0a然后重做系统后进入win10系统,打开C:\ProgramData\Microsoft\Windows\ClipSVC\GenuineTicket文件夹\x0d\x0a(注意ProgramData为隐藏文件夹),然后把保存的GenuineTicket.xml文件复制到这个目录中。\x0d\x0a4、重启电脑,确保系统已联网,稍后就会自动激活。也可以在系统属性中手动点击“立即激活”

现在的Windows 7没有进行激活,Windows 7的`桌面会是一片漆黑。而原来激活了Windows 7的用户,重装系统后忘记了激活码,很难找到有效的激活码来激活Windows 7。如何才能备份Windows 7的激活文件,重装系统后,让Windows 7自动激活。

两个“批处理”文件制作:

1、备份激活文件“批处理”

@echo off

copy %windir%System32spp okenspkeyconfigpkeyconfig.xrm-ms

copy %windir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat

pause

exit

将以上划线部分内字符复制/粘贴到记事本,另存为“备份激活文件.bat”即可。

2、恢复激活文件“批处理”

@echo off

net stop sppsvc /y

takeown /f "%WinDir%System32spp okenspkeyconfigpkeyconfig.xrm-ms"

cacls "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat" /e /g everyone:f

cacls "%WinDir%System32spp okenspkeyconfigpkeyconfig.xrm-ms" /e /g everyone:f

ren "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat" "tokens.bak"

ren "%WinDir%System32spp okenspkeyconfigpkeyconfig.xrm-ms" "pkeyconfig.bak"

copy tokens.dat "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform"

copy pkeyconfig.xrm-ms "%WinDir%System32spp okenspkeyconfig"

del "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.bak"

del "%WinDir%System32spp okenspkeyconfigpkeyconfig.bak"

ne

t start sppsvc

cscript %windir%system32slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

cscript %windir%system32slmgr.vbs -ato

pause

exit

将以上划线部分内字符复制/粘贴到记事本,用激活该系统时所使用的密钥替换其中的XXXXX-XXXXX-XXXXX-XXXXX-XXXXX,另存为“恢复激活文件.bat”即可。

两个“批处理”文件使用

1、将以上两个批处理文件放到任意磁盘的同一文件夹。以管理员身份运行“备份激活文件.bat”,即可得到两个激活文件的备份。

2、重装 *** 作系统后,在断网情况下(注意:不要接通),以管理员身份运行“恢复激活文件.bat”,即可实现 *** 作系统的自行激活。

按照上面的 *** 作步骤进行Windows 7激活文件备份后,以后重装Windows 7后,只需要这两个批处理就可以成功激活Windows 7了。

当 win7系统 用户需要重装系统的时候,如果将Win7系统激活文件信息备份起来,就可方便激活了,但是很多用户可能还不知怎样备份吧,那么请来看看下面的 *** 作方法吧。 笔记本win7系统 中将激活文件信息进行备份的方法分享给大家。

*** 作方法:

1、新建记事本,将以下代码内容粘贴到记事本中,另存为“备份激活文件.bat”的批处理文件。

@echo off

copy %windir%System32spp okenspkeyconfigpkeyconfig.xrm-ms

copy %windir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat

pause

exit

2、新建记事本,将以下代码内容粘贴到记事本中,然后激活该系统所使用的密钥替换其中的XXXXX-XXXXX-XXXXX-XXXXX-XXXXX,另存为“恢复激活文件.bat”的批处理文件。

@echo off

net stop sppsvc /y

takeown /f "%WinDir%System32spp okenspkeyconfigpkeyconfig.xrm-ms"

cacls "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat" /e /g everyone:f

cacls "%WinDir%System32spp okenspkeyconfigpkeyconfig.xrm-ms" /e /g everyone:f

ren "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat" "tokens.bak"

ren "%WinDir%System32spp okenspkeyconfigpkeyconfig.xrm-ms" "pkeyconfig.bak"

copy tokens.dat "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform"

copy pkeyconfig.xrm-ms "%WinDir%System32spp okenspkeyconfig"

del "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.bak"

del "%WinDir%System32spp okenspkeyconfigpkeyconfig.bak"

net start sppsvc

cscript %windir%system32slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

cscript %windir%system32slmgr.vbs -ato

pause

exit

3、将上面的两个批处理文件放到任意磁盘的同一文件夹中,右击以管理员身份运行“备份激活文件.bat”,就可得到两个激活文件的备份了。

重装系统之后,断开网络,以管理员身份运行“恢复激活文件.bat”,即可实现 *** 作系统的自行激活了。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/tougao/11339699.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-15
下一篇2023-05-15

发表评论

登录后才能评论

评论列表(0条)

    保存