新萝卜家园Win7系统文件信息进行备份的方法
更新日期:2015-11-25 11:25:15
来源:互联网
当用户需要重装系统的时候,如果将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”,就可得到两个激活文件的备份了。
4、重装系统之后,断开网络,以管理员身份运行“恢复激活文件.bat”,即可实现操作系统的自行激活了。
一、制作连个“批处理”文件制作:
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”,就可得到两个激活文件的备份了。
4、重装系统之后,断开网络,以管理员身份运行“恢复激活文件.bat”,即可实现操作系统的自行激活了。
猜你喜欢
-
程序兼容性助手PCA 在Win7旗舰版系统中将其关闭的次序 14-11-14
-
轻松解决win7 32位纯净版系统打开文件时假死的问题 15-01-06
-
大地win7系统然后修复电脑显屏中出现的屏倒立问题 15-05-19
-
中关村Win7系统设立家长控制的诀窍 15-05-16
-
番茄花园win7系统右键没有新建选项如何处理 15-06-22
-
雨林木风win7系统如何找到自定义桌面主题的方法 15-06-17
-
系统之家win7系统怎么利用源头控制USB让木马无处可入 15-06-15
-
深度技术win7如何快速挂载和分离VHD文件的小脚本 15-06-25
-
盘点深度技术win7系统中那些运行命令 15-06-06
新萝卜家园安装教程
Win7 系统专题
