Speaking of dll injection how difficult would it be to run these Code: reg load HKLM\MY_SYSTEM "%~dp0Windows\System32\config\system" reg delete HKLM\MY_SYSTEM\WPA /f reg unload HKLM\MY_SYSTEM inside windows via dll injection This an IR4 question since installing IR4 with those cmds inside windows is a goal of the developers of IR4 Off topic for your pleasure...lol
Uh actually no one is willing run it in Windows since when Windows has loaded the C:\Windows\System32\config\system, the file will be locked and I guess the security rule will be applied once it has been loaded ...... the only safe way to modify it to create an PE image / boot disk or using a speicific boot loader such as GRUB to boot into a mini-OS (such as MS-DOS) and then edit the file there (and actually this is how those Windows activation boot loaders worked as they have modified the ram content before booting into Windows ........ they have done everything via things like GRUB / Linux bootloader) Basically the following files are actually storing everything inside the registry (at least that is what I have been told by a MS technician) : - C:\Windows\System32\config\SYSTEM - C:\Windows\System32\config\SOFTWARE - C:\Windows\System32\config\SAM (you should never mess with this file and giving it into any people since it contains the password of all the accounts on your computer) - C:\Windows\System32\config\DEFAULT - C:\Windows\System32\config\SECURITY Actually you can even use these files to restore / reset the state after finishing the installation process ...... but I wouldn't say it out since some small kiddles may use the trick to reset any computer as they want
Yea we've been final for like 2.5 months or so, so when it comes about an idea to do what I spoke of I will be impressed
:\ I think I would better finish the this program first before moving onto that btw brb .... gonna have some fun with games
It's just something I was curious about to improve IR4 if you might have known but no one so far is able to do it...lol And that is ok I like IR4 the way it is just curious is all if anyone had working ideas to do what no one could do so far regarding win 7 rearm reset inside windows
Secr9tos said he did it but gave idea to chew7 guys but not sure if it's a mod or how he did it. I'll just focus on this OR4 stuff for now...lol
Actually it is possible to modify the file in Windows but I am not sure how it is done ......... since the registry file can actually be read under Windows ..... and could be overwrite the original file during reboot ..... but I haven't tried it out since it could break the registry file consistency
So back to this damn error...lol I am going to try to set up a temp back before restore of original back up so another restore if failed can be attempted. That is all i think I can do to see that the restore is working. Again if I run OR4.bat it never gives error and this is in OR4.bat Code: @echo off net stop osppsvc xcopy /cheriky "C:\OR4" "C:\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform" REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\OR4\Backup.hiv IF Exist "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) ELSE ( "\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) net start osppsvc So see something is happening I don't understand if these cmds run without a hitch how come when I reinstall OR4 I get the error. Can you see a difference as to what happens I mean here is what runs when I install/reinstall Code: mkdir "%SystemDrive%\OR4" net stop osppsvc xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "C:\OR4" reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\OR4\Backup.hiv /y net start osppsvc "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" schtasks /create /tn "Rearm2" /tr %file% /sc daily /mo 30 /RL HIGHEST /f echo. cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "Rearm2" IF ERRORLEVEL 1 echo OfficeRearm4 is not yet Installed echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) So you see what I mean...lol I can't wrap my head around it yet...lol And here is all the code Code: @echo off @color 9A title OfficeRearm4 2.0 :MAINMENU mode con: cols=45 lines=12 CLS echo. echo. echo. echo. OfficeRearm4 2.0 echo. echo. An Office 2010 Rearm Concept Solution echo. A. Install OR4 echo. B. Uninstall OR4 echo. C. OR4 Status echo. D. Manually run OR4.bat echo. E. Exit echo. :CHOOSEACTION set /p userinp= ^ Make your selection: set userinp=%userinp:~0,1% if /i "%userinp%"=="A" goto InstallOR4 if /i "%userinp%"=="B" goto UninstallOR4 if /i "%userinp%"=="C" goto OR4Status if /i "%userinp%"=="D" goto ManualRestoreRearm if /i "%userinp%"=="E" goto Exit echo. Try Again.... GOTO CHOOSEACTION :InstallOR4 CLS mode con: cols=64 lines=21 title OfficeRearm4 2.0 schtasks /Query /TN "\Rearm2" 1>nul 2>nul IF ERRORLEVEL 1 ( echo Installing OfficeRearm4 ) ELSE ( echo OfficeRearm4 has already been installed! echo. echo Press any key to return to the main menu PAUSE 1>nul GOTO MAINMENU ) mkdir "%SystemDrive%\OR4" net stop osppsvc xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "C:\OR4" reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\OR4\Backup.hiv /y net start osppsvc SET file=%SystemDrive%\OR4\OR4.bat IF EXIST %file% attrib -h %file% echo @echo off >%file% echo net stop osppsvc >>%file% echo xcopy /cheriky "C:\OR4" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" >>%file% echo REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >>%file% echo REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >>%file% echo reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\OR4\Backup.hiv >>%file% echo IF Exist "%COMMONPROGRAMFILES%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( >>%file% echo "%COMMONPROGRAMFILES%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >>%file% echo ) ELSE ( "%COMMONPROGRAMFILES(X86)%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >>%file% echo ) >>%file% echo net start osppsvc >>%file% "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" schtasks /create /tn "Rearm2" /tr %file% /sc daily /mo 30 /RL HIGHEST /f echo. cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "Rearm2" IF ERRORLEVEL 1 echo OfficeRearm4 is not yet Installed echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :ManualRestoreRearm mode con: cols=64 lines=21 title OfficeRearm4 2.0 start C:\OR4\OR4.bat echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :UninstallOR4 CLS mode con: cols=64 lines=10 title OfficeRearm4 2.0 SET file=%SystemDrive%\OR4 IF EXIST %file% attrib -h %file% RD /S /Q %file% schtasks /delete /tn "Rearm2" /f echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :OR4Status mode con: cols=64 lines=21 title OfficeRearm4 2.0 cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "Rearm2" IF ERRORLEVEL 1 echo OfficeRearm4 is not yet Installed echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :Exit Again the green is the OR4.bat file...lol
:\ actually I have already found several things for what you need ..... but the question is where can I keep in touch in you since I need you to test the concept (I can't test it as my Win7 is using a SLP key) ........ I need your help to test whether the method works or not :\ ..... otherwise I will need to install Win7 in VM
You mean reset the rearms to 4. We actually rearm inside windows now. Just have to go into RE to reset rearms to 4 The task actually rearms inside windows on it's own and a manual rearm actually creates new sync'd task and rearms Later
nope what I mean is to delete the key and every reboot and install the key for every reboot (I already found the function for it but requires several test including access token replacement) ...... and then rearm it so when you have rebooted it ..... it will become 30 days grace period again
If you can delete the key just with reboot and no RE then that's an improvement otherwise I like IR4 the way it is with task to run out rearms and there's no modification The only thing that is complicated to some users is going into RE so if you can fix that one part with just a reboot then that'd be cool Edit: We should probably just keep each discussion separate in their own thread
On topic...lol Here is an latest build minus any error fix to confirm testing of running of OR4.bat via the "D" option in the menu Code: @echo off @color 9A title IOR :MAINMENU mode con: cols=45 lines=12 CLS echo. echo. echo. echo. InfiniteOfficeRearm (IOR) echo. echo. An Office 2010 Rearm Concept Solution echo. A. Install IOR echo. B. Uninstall IOR echo. C. IOR Status echo. D. Manually Rearm echo. E. Exit echo. :CHOOSEACTION set /p userinp= ^ Make your selection: set userinp=%userinp:~0,1% if /i "%userinp%"=="A" goto InstallIOR if /i "%userinp%"=="B" goto UninstallIO4 if /i "%userinp%"=="C" goto IORStatus if /i "%userinp%"=="D" goto ManualRestoreRearm if /i "%userinp%"=="E" goto Exit echo. Try Again.... GOTO CHOOSEACTION :InstallIOR CLS mode con: cols=64 lines=21 title IOR schtasks /Query /TN "\Rearm2" 1>nul 2>nul IF ERRORLEVEL 1 ( echo Installing IOR ) ELSE ( echo IOR has already been installed! echo. echo Press any key to return to the main menu PAUSE 1>nul GOTO MAINMENU ) mkdir "%SystemDrive%\IOR" net stop osppsvc xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "C:\IOR" reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IOR\Backup.hiv /y net start osppsvc SET file=%SystemDrive%\IOR\IOR.bat IF EXIST %file% attrib -h %file% echo @echo off >%file% echo net stop osppsvc >>%file% echo xcopy /cheriky "C:\IOR" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" >>%file% echo REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >>%file% echo REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >>%file% echo reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IOR\Backup.hiv >>%file% echo IF Exist "%COMMONPROGRAMFILES%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( >>%file% echo "%COMMONPROGRAMFILES%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >>%file% echo ) ELSE ( "%COMMONPROGRAMFILES(X86)%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >>%file% echo ) >>%file% echo net start osppsvc >>%file% "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" schtasks /create /tn "Rearm2" /tr %file% /sc daily /mo 30 /RL HIGHEST /f echo. cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "Rearm2" IF ERRORLEVEL 1 echo IOR is not yet Installed echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :ManualRestoreRearm mode con: cols=64 lines=21 title IOR net stop osppsvc xcopy /cheriky "C:\IOR" "C:\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform" REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IOR\Backup.hiv IF Exist "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) ELSE ( "\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) net start osppsvc REM or run task...lol :UninstallIO4 title IOR SET file=%SystemDrive%\IOR IF EXIST %file% attrib -h %file% RD /S /Q %file% schtasks /delete /tn "Rearm2" /f echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :IORStatus mode con: cols=64 lines=21 title IOR cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "Rearm2" IF ERRORLEVEL 1 echo IOR is not yet Installed echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :Exit I will work on the reinstall issue later right now I'm trying to confirm that running task/IOR.bat in c: always works with no errors The stuff in orange is what upon reinstall fails with current error or a suggestion Edit: I give up...lol