Activating Windows 7 Enterprise Edition or professional edition with the "Mak key" is a historical opportunity for time-out migration (at least currently); activating windows with the "God key"
The 7 flagship edition relies on "luck" and "luck ". So how to back up windows
7. What if "Two activation Files" are automatically activated after the operating system is reinstalled? The following is a simple and practical solution for the successful solution by making two "batch processing" operations --
(1) about the creation of two "batch processing" files:
1. Backup activation file "batch processing"
---------------------------------------------------------------------------
@ Echo off
Copy % WINDIR % \ system32 \ spp \ tokens \ pkeyconfig. xrm-MS
Copy % WinDir % \ serviceprofiles \ NetworkService \ appdata \ roaming \ Microsoft \ softwareprotectionplatform \ tokens. dat
Pause
Exit
---------------------------------------------------------------------------
-- Copy/paste the preceding white characters to notepad and save it as "backup activation file. Bat.
2. Restore the activation file "batch processing"
-------- -------------------------------------------------------------------
@ Echo off
Net stop sppsvc/y
Takeown/F "% WINDIR % \ system32 \ spp \ tokens \ pkeyconfig. xrm-MS"
Cacls "% WinDir % \ serviceprofiles \ NetworkService \ appdata \ roaming \ Microsoft \ softwareprotectionplatform \ tokens. dat"/e/g everyone: F
Cacls "% WINDIR % \ system32 \ spp \ tokens \ pkeyconfig. xrm-MS"/e/g everyone: F
Ren "% WinDir % \ serviceprofiles \ NetworkService \ appdata \ roaming \ Microsoft \ softwareprotectionplatform \ tokens. dat" "tokens. Bak"
Ren "% WINDIR % \ system32 \ spp \ tokens \ pkeyconfig. xrm-MS" "pkeyconfig. Bak"
Copy tokens. dat "% WinDir % \ serviceprofiles \ NetworkService \ appdata \ roaming \ Microsoft \ softwareprotectionplatform \"
Copy pkeyconfig. xrm-MS "% WINDIR % \ system32 \ spp \ tokens \ pkeyconfig \"
Del "% WinDir % \ serviceprofiles \ NetworkService \ appdata \ roaming \ Microsoft \ softwareprotectionplatform \ tokens. Bak"
Del "% WINDIR % \ system32 \ spp \ tokens \ pkeyconfig. Bak"
Net start sppsvc
Cscript % WINDIR % \ system32 \ slmgr. vbs-IPK XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Cscript % WINDIR % \ system32 \ slmgr. vbs-ato
Pause
Exit
---------------------------------------------------------------------------
-- Copy/paste the above white characters to notepad, replace the XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with the key used to activate the system, and save it as "Restore activation file. Bat.
(2) Use of two "batch processing" files:
First, place the two batch files in the same folder on any disk. Run "backup activation file. Bat" as an administrator to back up two active files.
Second, after the operating system is reinstalled, if the network is disconnected (Note: Do not connect), Run "Restore activation file. Bat" as an administrator to activate the operating system.
Tip:
I read all the comments from netizens. The following are three tips:
First, to create a batch file, first remove "√" before "hiding the known file type extension" in the folder options, and then select "Save type" when "Save: all files ": the file name suffix must be. BAT.
Second, perform the correct backup operation: Right-click the backup and activate the file. if BAT/runs as an administrator, the file will be activated in "backup. bat generates two active file backups: pkeyconfig. xrm-MS and tokens. dat.
Third, if the backup fails for some reason, you can try to operate in safe mode or enable administrator: control Panel/Administrative Tools/Computer Management/local users and groups/user/Administrator properties/remove "Account Disabled" and "√"/OK.
In addition, please note that the backup of the two active files must be "in situ" (cannot be separated from "restoring the active file. BAT), otherwise it will not be able to achieve effective recovery and self-activation in the future.