Back up the Windows 7 key activation file for reinstallation and self-activation Batch Processing

Source: Internet
Author: User
How does one back up the "Two activation Files" in Windows 7 to enable automatic activation after the operating system is reinstalled? We will provide you with the following: (1) 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 --------------------------------------------------------------------------- copy/paste the characters in the preceding red dashes to the notepad and save it as a backup activation file. BAT. 2. Restore the activation file "batch processing" failed @ 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 R En "% 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 % \ servi Ceprofiles \ 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 ------------------------------------------------------------------------- copy/paste the characters in the preceding red dashes to notepad, and replace X with the key used to activate the system. XXXX-XXXXX-XXXXX-XXXXX-XXXXX, save as restore activation file. bat. (2) Use of two "batch processing" files: first, place the above two batch processing 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. There is also a way to manually view C: windowssystem32spptokenspkeyconfigpkeyconfig in Windows key on the local machine. xrm-Ms C: windowsserviceprofilesnetworkserviceappdataroamingmicrosoftsoftwareprotectionplatformtokens. dat C: windowsserviceprofilesnetworkserviceappdataroamingmicrosoftsoftwareprotectionplatformcachecache. dat1: Back up the preceding three files and save the activated CD-Key (Note: appdata is a hidden folder). appdata is a hidden folder. 2. reinstall the system later, you do not need to enter the CD-key or connect to the network. Find the above three files, right-click the property-security-advanced-owner, and change it to admi. Nistrator: Close the window, select Advanced -- permission again, and change amdinistator to full control, so that you can delete it. 3. Shut down the software licensing service in the management tool-service, and replace the preceding three files with the backup activation file (if the service is not disabled, tokens. dat cannot be replaced. 4. After the replacement, you must enable the software licensing service in the management tool-service, restart the computer 5, restart the computer, do not connect to the network, enter the activation number, (in the running process, type slmgr. vbs-IPK: Your activation serial number. Or, if the network is disconnected, right-click the computer and enter the key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.