Hi All, I've installed Windows 7 by USB and used MSDN keys to activate. Then I backed up 2 files pkeyconfig.xrm-ms & tokens.dat. Now I'd make a DVD with those 2 files & Key added in. So that I can re-install Windows sometime later and It automatically installs those 2 files & Key and activate offline. I create folders $OEM$\$$\system32\OEM with pkeyconfig.xrm-ms & tokens.dat in OEM and put them in sources folder. My question is that What command lines to delete them, then Copy backup files in same directory ?? I'm appreciated for all your help. Thanks in advance.
I would ask Hazar dude. You will need more commands then just delete/copy commands. You will also have to temporarly disable the software protection service to copy those files then start the service again after it is done. Another person you can ask would be PayMyRent because hr wrote the token restore tool so I am guessing that there may be some silent option or just batch codes like you are asking for.
mount image I call it D:\zMountDir Code: Inject your key or put it in xml Dism /image:D:\zMountDir /Set-ProductKey:xxxxx-xxxxx-xxxxx Following 4 lines may or may not be necessary but don't hurt cmd.exe /c takeown /f "D:\zMountDir\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" cmd.exe /c icacls "D:\zMountDir\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" /grant *S-1-5-32-544:F cmd.exe /c takeown /f "D:\zMountDir\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" cmd.exe /c icacls "D:\zMountDir\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" /grant *S-1-5-32-544:F copy C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms to same place on Mount C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat to same place on Mount thats it dismount with commit and create the iso
Thats all he's doing I asked him I just wanted to include that stuff in my own application so it's done when you hit the desktop, I didn't want to call his thing in setupcomplete.cmd or something I'm activated when I hit the desktop doing it that way but his thing is ok if you want to do it after
i think paymyrent is working on updating his app to do just that. it would be awesome if we can install it from a dvd.
Hi All, I'd like to say thank you to all of you for your suggestions and help. I successfully make a own DVD with offline activation after re-installation. Thanks again. I'm wondering if someone need the instruction how-tos, I will post the method. Have a nice day to all.
Here it is. For Windows Vista pkeyconfig.xrm-ms C:\Windows\System32\licensing\pkeyconfig tokens.dat C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareLicensing