IORRT - The Official Office 2010 VL Rearm Solution

Discussion in 'MDL Projects and Applications' started by timesurfer, Dec 1, 2010.

Thread Status:
Not open for further replies.
  1. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,813
    45,776
    150
    That's what I do.
     
  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #402 timesurfer, Dec 13, 2010
    Last edited: Dec 13, 2010
    (OP)
    Ok never mind and they already took down the IORRT torrent at E.T.for copyright take down reasons. It's still on demon, pirate chest and btjunkie for the moment...lol

    What I've noticed is that there is only one complaint with IORRT verses when I up an office with activator there are dozens. Seriously there was just one person who gave no facts and like our testing shows if they have 1 rearm and are in grace/activated it always works so their office was bricked or they thought it was an activator cause they didn't read instructions or they didn't run as administrator :eek:...lol

    We will never know :p
     
  3. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,813
    45,776
    150
    I realized since we rely on EZ-Activator for repairing office, and IORRT/AutoRearm can reverse it if already installed, we should make sure it won't be used in that state.

    I believe once you add the checks to IORRT to not install if 0 rearms, you will have covered your side.

    One thing I need to do is not let user use EZ-Activator with AutoRearm installed. Although AutoRearm won't install unless it has sufficient rearms, someone could forget they installed it, EZ-Activate, and lose their activation next day/restart due to going back to grace.

    I'll make sure EZ-Activator won't run over top of AutoRearm. I also changed the UI for Install of my Activation tools to future proof it (to allow me to fit a new tool in should I ever make one).
     
  4. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #404 timesurfer, Dec 14, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
  5. oRb

    oRb MDL Novice

    May 21, 2008
    15
    1
    0
    #405 oRb, Dec 15, 2010
    Last edited by a moderator: Apr 20, 2017
    There are two ways i can see, one is to redirect the output of ospprearm to a text file then use
    a for loop with findstr to search the text file for the string successful.

    Code:
    
    
       if exist "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" (
         
          "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" > %SystemDrive%\errorcheck.txt
               
       ) else (
    
          "%SystemDrive%\Program Files(x86)\Common Files\\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" > %SystemDrive%\errorcheck.txt 
       )
    
    
       FOR /F "usebackq tokens=1-3 delims= " %%m IN (`findstr /c:"successful" "%SystemDrive%\errorcheck.txt"`) DO (
          
          goto rearmsuccess 
    
       ) 
    
       DEL "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Backup.hiv"
       SET file=%SystemDrive%\Backup
       IF EXIST %file% attrib -h %file%
       RD /S /Q  %file%
       del %SystemDrive%\errorcheck.txt > nul
       goto mainmenu
       
    :rearmsuccess
    
       del %SystemDrive%\errorcheck.txt > nul
    
    

    An easier way is to use errorlevel, ospprearm returns an errorlevel of 0 for success

    Code:
       if errorlevel==0  goto rearmsuccess
    
          DEL "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Backup.hiv"
          SET file=%SystemDrive%\Backup
          IF EXIST %file% attrib -h %file%
          RD /S /Q  %file%
          GOTO MAINMENU 
    
    :rearmsuccess
    
    
     
  6. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #406 timesurfer, Dec 16, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Ok I'm a little lost with this. The bat file is in first post download if you want to test yourself. But make sure to include the temp backup and restore

    I'm wondering why we can't just use the actual error and if present restore delete stuff give msg then give prompt to return to main menu

    I haven't been able to wrap my head around this yet but there's not hurry. Actually when people can't rearm it give the message above but it goes past fast. What I haven't seen yet is backups fail or task to install fail. Those are always working just the lack of any rearms that kills IORRT install.

    Of course as I've said many times is that codys toolkit via license delete then EZ-activation part and that heals the rearms as cody says

    Thank you for your interest :eek:
     
  7. oRb

    oRb MDL Novice

    May 21, 2008
    15
    1
    0
    #407 oRb, Dec 17, 2010
    Last edited by a moderator: Apr 20, 2017
    I can't see the basis of your confusion, this is how it would fit into your script

    Code:
    :Install
    CLS
    mode con: cols=64 lines=21
    title IORRT 1.9
    net stop osppsvc
    xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "%SystemDrive%\Backup\Files\Tokens"
    mkdir "%SystemDrive%\Backup\Registry"
    reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\Backup\Registry\OfficeSPPInfo.hiv
    net start osppsvc
    IF Exist "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( 
    "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    ) ELSE ( "%commonprogramfiles(x86)%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    )
    
       if errorlevel==0  goto rearmsuccess
    
    rem     If rearm error is present then the execute following 
    
    rem     your clean up code here
    
    rem     your error message here
    
       pause 
    
       GOTO MAINMENU 
    
    :rearmsuccess
    
    schtasks /query | FINDSTR /I "IORRT" >NUL 
    IF ERRORLEVEL 1 (
    echo Installing IORRT
    ) ELSE (
    echo IORRT has already been installed!
    echo.
    echo Press any key to return to the main menu
    PAUSE 1>nul
    GOTO MAINMENU
    )
    mkdir "%SystemDrive%\IORRT"
    net stop osppsvc
    xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "%SystemDrive%\IORRT\Backup\Files\Tokens"
    mkdir "%SystemDrive%\IORRT\Backup\Registry"
    reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\IORRT\Backup\Registry\OfficeSPPInfo.hiv
    net start osppsvc
    SET file=%SystemDrive%\IORRT\IORRT.bat
    IF EXIST %file% attrib -h %file% 
    echo @echo off >%file%
    echo net stop osppsvc >>%file%
    echo xcopy /cheriky "%SystemDrive%\IORRT\Backup\Files\Tokens" "%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" %SystemDrive%\IORRT\Backup\Registry\OfficeSPPInfo.hiv >>%file%
    echo net start osppsvc >>%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 schtasks /delete /tn "IORRT" /f >>%file%
    echo schtasks /create /tn "IORRT" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc daily /mo 1 /ru "" >>%file%
    IF Exist "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( 
    "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    ) ELSE ( "%commonprogramfiles(x86)%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    )
    schtasks /create /tn "Hybrid" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc onstart /ru ""
    schtasks /create /tn "IORRT" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc daily /mo 1 /ru ""
    echo.
    cd /d "%InstallRoot%"
    cscript OSPP.VBS /dstatus
    schtasks /query | FINDSTR /I "IORRT"
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
     
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #408 timesurfer, Dec 17, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Feel free to get it working yourself and test it and let us know...lol

    It won't really help except I'll have excuse why it didn't work otherwise they will still have to leave comments they got error and then troubleshoot and repair with cody's toolkit
     
  9. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    909
    10
    #409 DARKOR04, Dec 17, 2010
    Last edited: Dec 17, 2010
    Deleted- due to browser freeze created double post sorry...
     
  10. imanea10

    imanea10 MDL Novice

    Dec 17, 2010
    2
    0
    0
    IORRT,Toolkit/ EZ Activate, AutoRearm

    -----------------------------
    Hi Timesurf,
    Sorry to bug you but I need some help.:confused:
    The searching feature didn't work for me very well, so I had to read over hundreds of notes in the past 24h that my head is spinning.
    So:
    0. Running W7, x64; Off Pro Pro x32 --- Got warning that it is not acctivated, and only 4 days left
    1. DL from a few places the Toolkit 2.0.1. It wouldn't start for me. In the end I got one that it started the GUI. Great. Only that it is flaged as Spyware
    (EZ Activation brings "failed to start C:\Windows\KMSEmulator.exe"
    I noticed that AV flags Spyware Application.Keygen.Bi under C:\Windows\KMSEmulator.exe).
    So I was afraid to get any further with that.::eek:
    2. I got your IORRT, run as instructed and the results were::worthy:
    SKU ID 6f327760-8c5c-417c-9b61-836a98287e0c
    Licence name: Office 14, Office ProPlus-KMS_Client edition
    License description: Office 14, Volume_KMSClient channel
    Error Code: 0x4004F00C
    Error DEscription: The software licensing service reported that the application is running within the valid grace period.
    Last 5 characters of instaled product key: H3GVB
    Remaining Grace: 30 days (43200 minutes before expiring)
    ---
    Exiting
    IORRT
    Ready
    press any key to return to the main menu

    -----

    selction D====>


    License Status: ---00B_Grace---???
    ---------------
    3. Restarted a couple times.


    Questions:
    Q1. When I go to Outlook it says that it is not Activated. What now?
    Q2. I read quite a few times in the posts about AutoRearm. Can/should that one be used separate or is always part of the IORRT and/or Toolkit?
    Q3. Do I need to get my pants down and use Toolkit or no?

    I hope to get some help because my head is hurting big time right now after so much reading and pocking....

    All the best and thank you :worthy:
    im
     
  11. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    909
    10
    #411 DARKOR04, Dec 17, 2010
    Last edited by a moderator: Apr 20, 2017
    I just write a batch to successfully check for rearms available its working it took me about 45 minutes wuuuujjjjjuuuu
    I will upload it in some minutes.....

    @ts here is the batch example (Backup > Rearm Loop > Backup Restore > Display Message)

    Code:
    @echo off
    
    color 09
    
    
    
    :OFREARMMENU
    cls
    title Office Rearm Check Tool v1.0 (BETA1) by Darkor
    MODE CON COLS=68 LINES=20
    echo. =======================================
    echo. Office Rearms check.
    echo. =======================================
    echo. 
    echo. A. Check Rearms Left.
    echo. B. Cancel/Exit
    echo.
    
    choice /C ab /N /M "Select Option [a-b]: "
    echo.
    IF ERRORLEVEL 2 goto END
    IF ERRORLEVEL 1 goto OFREARMCHECK
    )
    
    :OFREARMCHECK
    echo. Verifying Rearms left.. Please Wait...
    echo.
    mkdir "%SystemDrive%\WOAT"
    net stop osppsvc >nul
    xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "%SystemDrive%\WOAT\Backup\Files\Tokens" >nul
    mkdir "%SystemDrive%\WOAT\Backup\Registry" >nul
    reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\WOAT\Backup\Registry\OfficeSPPInfo.hiv >nul
    reg export "HKLM\SOFTWARE\Microsoft\Office\14.0\Registration" %SystemDrive%\WOAT\Backup\Registry\Registration.reg >nul
    net start osppsvc >nul
    set r=0
    :OFLOOP
    "%~dp0Office\ospprearm.exe" | FIND /i "Microsoft Office rearm successful." >nul
    IF '%ERRORLEVEL%' EQU '0' (
    goto:ADD1
    ) ELSE (
    goto:Looprestore
    )
    :ADD1
    set /A r=r+1
    goto:OFLOOP
    )
    
    :Looprestore
    net stop osppsvc >nul
    xcopy /cheriky "%SystemDrive%\WOAT\Backup\Files\Tokens" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftware\ProtectionPlatform" >nul
    REG DELETE "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" /f >nul
    REG DELETE "HKLM\SOFTWARE\Microsoft\Office\14.0\Registration" /f >nul
    REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >nul
    REG ADD HKLM\SOFTWARE\Microsoft\Office\14.0\Registration /f >nul
    reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\WOAT\Backup\Registry\OfficeSPPInfo.hiv >nul
    REG IMPORT %SystemDrive%\WOAT\Backup\Registry\Registration.reg >nul
    net start osppsvc >nul
    SET file=%SystemDrive%\WOAT
    IF EXIST %file% attrib -h %file%
    RD /S /Q  %file%
    goto:OFREARMLEFT
    )
    
    :OFREARMLEFT
    cls
    title Office Rearm Check Tool v1.0 (BETA1) by Darkor
    MODE CON COLS=68 LINES=20
    echo. =======================================
    echo. Office Rearms check.
    echo. =======================================
    echo.
    echo. You have %r% available rearms.
    echo.
    cscript "%~dp0Office\ospp.vbs" /dstatus | FINDSTR /i "name"
    cscript "%~dp0Office\ospp.vbs" /dstatus | FINDSTR /i "status"
    cscript "%~dp0Office\ospp.vbs" /dstatus | FINDSTR /i "last key"
    cscript "%~dp0Office\ospp.vbs" /dstatus | FINDSTR /i "remaining"
    echo.
    echo. Press any key to continue...
    echo.
    pause >nul
    GOTO:OFREARMMENU
    )
    
    :END
    exit /b
     
     
  12. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    909
    10
    Dude Ignore the av flag KMS emulator .exe is TOTALLY SAFE
    (thats the exe that all windows 7 and office kms activator use)
     
  13. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #413 timesurfer, Dec 17, 2010
    Last edited: Dec 18, 2010
    (OP)
    I think the answer is that like the first post should say IORRT doesn't activate your office it simply keeps it in infinite grace/trial which has same appearance and usage like being activated but without the anxiety of being de-activated hence "infiniteOfficeRestoreRearmTask" (IORRT)

    It's up to you about wheather to be activated or not but I think IORRT is a better beginner solution to use office in grace perpetually.
    I only recommend cody's toolkit for those people who prefer activation for 6 months at time via KMS ;)
     
  14. skylark

    skylark MDL Junior Member

    Sep 3, 2009
    56
    10
    0
    Congratulations and many thanks to Timesurfer, CODYQX4 and everyone else that has been involved in developing and testing this elegant solution.

    It is working beautifully on my virtual XP Pro SP3 computer running the x86 VL edition of Word 2010. IORRT promises to be ideal for people that need a better alternative to the Starter Edition without having to keep messing with KMS activation.

    What would happen if the computer had not been used or booted up for several months? Would IORRT cause Office to automatically rearm and revert to “OOB Grace” or would it require KMS activation?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #415 timesurfer, Dec 19, 2010
    Last edited: Dec 19, 2010
    (OP)
    lol...It will restore/rearm at boot to 30 days 43200 minutes

    The only reason anyone needs to use KMS activation is if their 2010 is bricked in notifications with 0 rearms left
     
  16. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    909
    10
    "An Elegant tool" Totally agree with you skylark, I also would add AWESOME ALTERNATIVE.... ;)
     
  17. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  18. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    909
    10
    #418 DARKOR04, Dec 19, 2010
    Last edited by a moderator: Apr 20, 2017
    @ts

    How about this Rearm Check before installing IORRT, with this the problem could be resolve don't you think lol
    Note Not tested yet... I will test it, if everything is fine then is Done!
    Code:
    :Rearmcheck
    echo. Veriying If Rearms are Available. Wait...
    echo.
    mkdir "%SystemDrive%"\RearmCheckTemp"
    net stop osppsvc >nul
    xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "%SystemDrive%\RearmCheckTemp\Backup\Files\Tokens" >nul
    mkdir "%SystemDrive%\RearmCheckTemp\Backup\Registry" >nul
    REG SAVE "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\RearmCheckTemp\Backup\Registry\OfficeSPPInfo.hiv >nul
    REG EXPORT "HKLM\SOFTWARE\Microsoft\Office\14.0\Registration" %SystemDrive%\RearmCheckTemp\Backup\Registry\Registration.reg >nul
    net start osppsvc >nul
    set r=0
    :RearmLoop
    IF Exist "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( 
    "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >nul
    ) ELSE ( "%commonprogramfiles(x86)%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >nul
    IF '%ERRORLEVEL%' EQU '0' (
    goto:ADD1
    ) ELSE (
    goto:RestoreDisplay
    )
    :ADD1
    set /A r=r+1
    goto:RearmLoop
    )
    :RestoreDisplay
    net stop osppsvc >nul
    xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "%SystemDrive%\RearmCheckTemp\Backup\Files\Tokens" >nul
    REG DELETE "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" /f >nul
    REG DELETE "HKLM\SOFTWARE\Microsoft\Office\14.0\Registration" /f >nul 
    REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >nul
    REG ADD HKLM\SOFTWARE\Microsoft\Office\14.0\Registration /f >nul
    REG RESTORE "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\RearmCheckTemp\Backup\Registry\OfficeSPPInfo.hiv >nul
    REG IMPORT %SystemDrive%\RearmCheckTemp\Backup\Registry\Registration.reg >nul 
    net start osppsvc >nul
    SET file=%SystemDrive%\RearmCheckTemp
    IF EXIST %file% attrib -h %file%
    RD /S /Q  %file%
    goto:RearmAvailable
    )
    :RearmAvailable
    echo. You have %r% available rearms.
    if "%r%" == "%0%" echo. IORRT Can not be Installed, You need at least 1 Rearm. & pause >nul & goto:MAINMENU
    ) ELSE (
    echo. You have %r% available rearm.
    echo. Press any key to continue IORRT Installation.
    pause >nul
    goto:Install
    )
     
  19. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #419 timesurfer, Dec 19, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    I have IORRT installed and this code just bricked office...lol

    Luckily I just click C option and all is well again :p

    Would like to see it work out of curiosity.

    Thanks for your consideration
     
  20. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    909
    10
    It bricked because when code started I missed a \Backup that was the problem

    Did you read the Note lol now is repaired Im testing it right now feedback in few mins okay