Where are Windows 7 activation file stored?
Software
Author
author
Date
2019-08-28 18:47
Views
4525
1. Copy and save or backup the following activation-related files to external storage medium such as USB flash drive or portable hard disk drive:
and,%SystemDrive%\Windows\ServiceProfiles\NetWorkService\AppData\Roaming\Microsoft\SoftwarePlatform\Tokens.dat
Note: For 64-bit (x64) OS,%SystemDrive%\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
%SystemDrive%\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
have to be backed up too.
2. Retrieve and record the product key used to install and activate the current Windows 7 or Windows Server 2008 R2.
Tip: If you can’t remember the product key used, there is plenty of product key viewers available to help.
3. Reinstall Windows 7 or Windows Server 2008 R2. When installation wizard prompts for a product key for activation, leave it blank (do not enter anything).
4. In the newly installed Windows operating system, stop the Software Protection Service in Services.msc or with the following command (run in elevated command prompt):
5. Navigate to the following folder:net stop sppsvc
Note: In 64-bit (x64) operating system, also perform the action in%SystemDrive%\Windows\System32\spp\tokens\pkeyconfig\
%SystemDrive%\Windows\SysWOW64\spp\tokens\pkeyconfig\
folder.
6. Take ownership and give user full control permissions (alternatively add grant full control right click menu item) to pkeyconfig.xrm-ms file.
7. Delete the original default pkeyconfig.xrm-ms file, and replace with the backup copy.
8. Navigate to the following folder:
9. Take ownership and give user full control permissions (alternatively add grant full control right click menu item) to tokens.dat file.%SystemDrive%\Windows\ServiceProfiles\NetWorkService\AppData\Roaming\Microsoft\SoftwarePlatform\
10. Delete the original default tokens.dat file, and replace with the backup copy.
11. Restart the Software Protection Service in Services.msc or with the following command (run in elevated command prompt):
12. Register the product key for Windows 7 or Windows Server 2008 R2 with the following command (run in elevated command prompt):net start sppsvc
Replace xxxxx-xxxxx-xxxxx-xxxxx-xxxxx with the actual product key.slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
13. Windows will activated instantly, off-line. To check activation status, uses of of the following commands:
slmgr.vbs -dlv
slmgr.vbs -dli
slmgr.vbs -ato
are
The accepted answer here does not seem to work as written and involves taking ownership of, and changing permissions on, several system files, which does not seem like a good idea (and also appears to be unnecessary). Additionally, it incorrectly answers the base question of "Where are the activation files stored?".
As for the core question, the activation token can be found at this path:
%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat
On a typical installation, %WinDir%
expands to C:\Windows:C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat
The steps found in the post Windows 7 Activation Backup/Restore by Jonathan Vasquez describe how to backup the activation and restore it after a new install. They are simpler and do not require changing permissions (tokens.dat
already has full permission for everyone). I have verified these steps work on a Windows 7 Pro installation.
- Make a copy of the
tokens.dat
file from the path listed above- Make sure you know your Windows 7 product key. If you have lost it, you can find tools to retrieve it from the registry on Google.
- Reinstall Windows 7 and skip the product key entry
- On the new Windows installation, launch the Command Prompt as Administrator
- Run the command
slmgr -ipk <your Windows 7 product key>
using the previous Windows 7 product key- Run
net stop sppsvc
- Change into the folder where your backup of
tokens.dat
is and runcopy /Y tokens.dat
%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat- Run
net start sppsvc
Windows 7 should now be fully activated using your previous key and activation token.
Total Reply 0
Total 104
Number | Title | Author | Date | Votes | Views |
103 |
Join a Microsoft Teams meeting
author
|
2020.09.22
|
Votes 0
|
Views 1832
|
author | 2020.09.22 | 0 | 1832 |
102 |
How to delete songs and albums from your Google Play Music library
author
|
2020.09.19
|
Votes 0
|
Views 1997
|
author | 2020.09.19 | 0 | 1997 |
101 |
Watch Prime Video on Chromecast
author
|
2020.09.14
|
Votes 0
|
Views 1754
|
author | 2020.09.14 | 0 | 1754 |
100 |
How to Fix the Windows 10 We Couldn’t Connect to the Update Service Issue (2)
author
|
2020.09.09
|
Votes 0
|
Views 2480
|
author | 2020.09.09 | 0 | 2480 |
99 |
IONOS Joomla! Standard Installation
author
|
2020.09.02
|
Votes 0
|
Views 1018
|
author | 2020.09.02 | 0 | 1018 |
98 |
How to improve the life of a Battery: (1)
author
|
2020.08.25
|
Votes 0
|
Views 1034
|
author | 2020.08.25 | 0 | 1034 |
97 |
Laptop battery not charging
author
|
2020.08.21
|
Votes 0
|
Views 1329
|
author | 2020.08.21 | 0 | 1329 |
96 |
Plugged in, not charging (1)
author
|
2020.08.21
|
Votes 0
|
Views 1157
|
author | 2020.08.21 | 0 | 1157 |
95 |
How to add reCaptcha plugin to a custom form on my WordPress website?
author
|
2020.08.13
|
Votes 0
|
Views 1293
|
author | 2020.08.13 | 0 | 1293 |
94 |
I can't log in to the WordPress admin dashboard after installing and activating Limit Attempts plugin
author
|
2020.08.13
|
Votes 0
|
Views 958
|
author | 2020.08.13 | 0 | 958 |