How to back up the Win7 system activation file information to re-install the system and then activate

  
                                     

First, the production of a "batch" & rdquo; file production:

1, backup activation file & ldquo; batch processing & rdquo;

------- -------------------------------------------------- ------------------

@echo off

copy %windir%System32spp okenspkeyconfigpkeyconfig.xrm-ms

copy %windir%ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform okens.dat

pause

exit

----------------------- -------------------------------------------------- --

Copy/paste the characters in the upper line to Notepad and save as "Backup activation file .bat".

2, restore the activation file "batch" & rdquo;

-------------------------- -------------------------------------------------< Br>

@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 okenspkeyconfi g"

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

---------------------------------------------- -----------------------------

2, copy and paste the characters in the above lined part Go to Notepad and replace the XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with the key used to activate the system, save as "Restore activation file .bat".

3, two & nbsp; batch processing & rdquo; file use:

1) put the above two batch files into the same folder on any disk, then right click on them to manage The identity is running “ backup activation file .bat”, you can get a backup of the two activation files.

2) After reinstalling the system, in the case of network disconnection, run the administrator as “administrator” to restore the activation file .bat” to realize the self-activation of the operating system.

Copyright © Windows knowledge All Rights Reserved