番茄花园win10系统下载官网官网 - 系统下载更安全,最好的系统ghost下载网站!

备份w10激活文件信息以便重装系统后再激活

发布日期:2016-10-01 作者:番茄花园win10系统下载官网 来源:http://www.fanqiewin10.com

     备份w10激活文件信息以便重装系统后再激活分享给大家,当你需要重装系统时,便可实现重装系统后再激活了,有此需要的用户一起来看看下面的操作方法吧。

 

  一、制作连个“批处理”文件制作:
1、新建记事本,将以下代码内容粘贴到记事本中,另存为“备份激活文件.bat”的批处理文件。
  @echo off
  copy %windir%System64spp 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%System64spp okenspkeyconfigpkeyconfig.xrm-ms"
  cacls "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat" /e /g everyone:f
  cacls "%WinDir%System64spp okenspkeyconfigpkeyconfig.xrm-ms" /e /g everyone:f
  ren "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat" "tokens.bak"
  ren "%WinDir%System64spp okenspkeyconfigpkeyconfig.xrm-ms" "pkeyconfig.bak"
  copy tokens.dat "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform"
  copy pkeyconfig.xrm-ms "%WinDir%System64spp okenspkeyconfig"
  del "%WinDir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.bak"
  del "%WinDir%System64spp okenspkeyconfigpkeyconfig.bak"
  net start sppsvc
  cscript %windir%system64slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  cscript %windir%system64slmgr.vbs -ato
  pause
  exit
  3、将上面的两个批处理文件放到任意磁盘的同一文件夹中,右击以管理员身份运行“备份激活文件.bat”,就可得到两个激活文件的备份了。
  4、重装系统之后,断开网络,以管理员身份运行“恢复激活文件.bat”,即可实现操作系统的自行激活了。