The current Windows 7 is not activated, and the 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 line to Notepad and save as "Backup Activation File.bat".
2, restore the activation file "batch"----------------------------------- ----------------------------------------
@echo off< Br>
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 "%WinD Ir%\\System32\\spp\\tokens\\pkeyconfig\\pkeyconfig.bak"
ne
t 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 underline to Notepad, using the secret used to activate the system Replace the XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with the key and save it as "Resume activation file .bat".
Two "batch" files use 1, the above two batch files are placed in 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 activate 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.
Win7 system program can not start prompt LIBEAY32.DLL lost how to solve? LIBEAY32.DLL what it is?
USB3.0 and 2.0 transmission speeds vary greatly. Now many of the most popular motherboards are equip
1. Click Start - Control Panel to open the Win7 Control Panel. 2. Find <;Power Options” an
In the windwos7 system, its taskbar is simple and easy to use, so it has been loved by the majority
Win7 prompts the reason for insufficient memory and countermeasures
How to solve the Chinese characters garbled under the win7 system
How to delete one of the Win7 and Win8 dual systems?
Win7 system playback video has been appearing noise effects how to solve the problem?
How can Win7 not solve the task manager?
Share some small cheats in Win7 settings
Can I use a computer when thunder?
Win7 can not run the prompt rasman.dll file loss processing method
How to increase the c disk space in win7 system?
How to automatically close the win7 system IE browser open
How to do the Win7 system Documents and Settings folder is not locked
Modify Phoenix Bios to install OEM version VISTA
Win7 method to modify window color
How to adjust the Win 7 system taskbar
From Windows7 to CRM system upgrade performance improvement know how much
Win10 Mobile Preview 10166: Support background download offline map (with download method)
Win7 system computer boot display missing operating system how to solve
Win7 drawing tool input text rotation 90 ° correction method
Win10 upgrade 9879 failed solution