Where are Windows 7 activation file stored?
Software
Author
author
Date
2019-08-28 18:47
Views
6585
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 |
43 |
Robocopy command syntax and examples
author
|
2019.08.30
|
Votes 0
|
Views 3469
|
author | 2019.08.30 | 0 | 3469 |
42 |
Where are Windows 7 activation file stored?
author
|
2019.08.28
|
Votes 0
|
Views 6585
|
author | 2019.08.28 | 0 | 6585 |
41 |
Windows 7 Fix 0.0.0.0 Default Gateway Issue
author
|
2019.08.16
|
Votes 1
|
Views 3136
|
author | 2019.08.16 | 1 | 3136 |
40 |
How do I stop Chrome opening automatically on startup (Windows 10)? (5)
author
|
2019.08.04
|
Votes 0
|
Views 2951
|
author | 2019.08.04 | 0 | 2951 |
39 |
Q: What does it mean when the charger light is red instead of green (1)
author
|
2019.08.02
|
Votes 0
|
Views 2614
|
author | 2019.08.02 | 0 | 2614 |
38 |
your "default" contact/calendar data is stored in the default data file for the profile
author
|
2019.07.24
|
Votes 0
|
Views 2395
|
author | 2019.07.24 | 0 | 2395 |
37 |
How do I export contacts stored in the DYMO Label Software Address Book? (1)
author
|
2019.07.24
|
Votes 0
|
Views 3996
|
author | 2019.07.24 | 0 | 3996 |
36 |
How to Import Label Files for Dymo Printers
author
|
2019.07.24
|
Votes 0
|
Views 2535
|
author | 2019.07.24 | 0 | 2535 |
35 |
Moving Your DYMO Files to Another Computer
author
|
2019.07.24
|
Votes 0
|
Views 2919
|
author | 2019.07.24 | 0 | 2919 |
34 |
Why did I get Paypal API error code 11601?
author
|
2019.07.13
|
Votes 0
|
Views 3210
|
author | 2019.07.13 | 0 | 3210 |