Author Topic: Rearm with a .bat file  (Read 1698 times)

Offline javajolt

  • Administrator
  • Hero Member
  • *****
  • Posts: 35267
  • Gender: Male
  • I Do Windows
    • windows10newsinfo.com
Rearm with a .bat file
« on: July 11, 2009, 01:22:28 AM »

There are different types of activation, but I don't like them. Most of them work until a reboot is done and then your back to nothing.  Waiting for a proper crack might be best.

You can rearm for 180 days which is 6 months btw.

Create a .bat file containing:

@echo off
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"
md backup
copy "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.bak" ".\backup\"
copy "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.bak" ".\backup\"
cls
if exist ".\backup\tokens.bak" goto pb2
goto end
:pb2
echo found ".\backup\tokens.bak"
if exist ".\backup\pkeyconfig.bak" goto pok
goto end
:pok
echo found ".\backup\pkeyconfig.bak"
echo ============================================
echo = Back-Up Files Created in Folder "backup" =
echo ============================================
pause
copy tokens.dat "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\"
copy pkeyconfig.xrm-ms "%WinDir%\System32\spp\tokens\pkeyconfig\"
cls
if exist "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" del "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.bak"
if exist "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" del "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.bak"
net start sppsvc
cscript %windir%\system32\slmgr.vbs -ipk MM7DF-G8XWM-J2VRG-4M3C4-GR27X
cscript %windir%\system32\slmgr.vbs -ato
:end
pause


Then copy to the same folder tokens.dat and pkeyconfig.xrm-ms from RC build (for ex. 7229 worked for me)

Run the .bat as administrator

I have not personally done this but I have been informed by people who have done it that it works.