Now Windows 7 is not activated, Windows 7 desktop will be dark. The user who activated Windows 7 re-installed the system and forgot the activation code. It is difficult to find a valid activation code to activate Windows 7. Below, the author teaches us how to backup the activation file of Windows 7, reinstall the system, let Windows 7 is automatically activated.
Two "Batch" file creation
1, backup activation file "Batch"
--------------------- -------------------------------------------------- ----
@echo off
copy %windir%\\System32\\spp\\tokens\\pkeyconfig\\pkeyconfig.xrm-ms
copy %windir%\\ServiceProfiles\\ NetworkService\\AppData\\Roaming\\Microsoft\\SoftwareProtectionPlatform\\tokens.dat
pause
exit
----------------- -------------------------------------------------- --------
Copy/paste the characters in the upper part of the line to Notepad and save it as “Backup Activation File.bat”.
2, restore the activation file "batch"
-------------------------------- -------------------------------------------
@ Echo off
net stop sppsvc /y
takeown /f "%WinDir%\\System32\\spp\\tokens\\pkeyconfig\\pkeyconfig.xrm-ms"
cacls "% WinDir%\\ServiceProfiles\\NetworkService\\AppData\\Roaming\\Microsoft\\SoftwareProtectionPlatform\\tokens.dat" /e /g everyone:f
cacls "%WinDir%\\System32\\spp\\tokens\\pkeyconfig\\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\\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\\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 characters in the upper line to Notepad and replace XXXXX-XXXXX with the key used to activate the system. -XXXXX-XXXXX-XXXXX, save as "Restore activation file .bat".
Two "batch" files use
1, put the above two batch files into the same folder on any disk. Run the "Backup Activation File .bat" as an administrator to get a backup of the two activation files.
2. After reinstalling the operating system, in the case of network disconnection (note: do not connect), run the “Restore Activation File.bat” as an administrator to implement the activation of the operating system.
After the above steps, Windows 7 activation file backup, after reinstalling Windows 7, you only need these two batches to successfully activate Windows 7.
mechanical hard disk since the flood, the price continues to skyrocket, leading many users to buy co
I believe that many of my friends have already used Windows 7. Do you still have a place to understa
Lets take a brief look at the search of WIN7. In the previous section of our start menu, we
Sometimes we want to leave a little personal privacy in our computer, I hope to set a password for s
Adjusting the Windows 7 taskbar preview window is too small
Enter the world of win7 User Account Control (UAC) (1)
How to set the day of the week in the system tray of Windows7 (2)
Set up Win 7 to run as an administrator
Just 2 minutes to create a perfect system for Windows 7 Metro
Windows 7 plugged in USB does not play automatically Solution
Windows 7 system function for U disk encryption
Let your Windows 7 system up and running faster Windows7
Can't add icon (shortcut) to win7 to win7
Windows 7's task scheduling program makes program automation more flexible
Let the win7 system not display the login interface directly into the system
How to perform multitasking operation on IE11 under Win8.1 system
How does Win7 use the Group Policy Editor to disable the command prompt
Win8.1 Fix Steps for Unavailable Flash Plugin
If you don't have a scheduled Win10 upgrade, can you upgrade Win10 for free?
No optical drive notebook system detailed tutorial
Using Windows 7 Safe Mode to Solve Difficulties
MAC boot stop responding and flashing question mark how to do
How to let Sogou input method candidate words vertically display under win10
Win10 how to set the bottom of the folder does not display the status bar