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,814
    45,774
    150
    #41 CODYQX4, Dec 2, 2010
    Last edited by a moderator: Dec 2, 2010
    Stop hijacking thread!!!
     
  2. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    I really do appreciate your toolkit and like how it works. I'm really only spending some time on testing this, to see if we can get this project working on XP.
     
  3. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    #43 timesurfer, Dec 2, 2010
    Last edited: Dec 2, 2010
    (OP)
    Hyjacked...lol CODYQX4 why don't you ever test my build so that you'll actually know what IORRT does...lol

    Wanting everyone to test your stuff and not testing there's in not teamwork dude!

    Really I am still in an XP testing environment so telling people to use yours is not productive to those who are testing for me and I need XP testers not reference to just again use your toolkit :rolleyes:

    A reformat is never a problem with IORRT since a clean office install is in grace especially after OS reformat

    I choose the 1 day cause it takes 7 seconds to restore/rearm/re-create task and it's silent so that gives user good chance at always being in grace assuming they install at time their comp will be on most likely

    The notifications you get after 30 days run out I believe is restorable and rearmable so no worries there just the one after repair or brick of office

    IORRT is running every day if the users comp is on when IORRT is installed. Also IORRT users can use option C to change the daily run time for task

    Try IORRT out with win 7 and see how it works then you'll have platform to know what it does and how it works
     
  4. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,814
    45,774
    150
    #44 CODYQX4, Dec 2, 2010
    Last edited by a moderator: Dec 2, 2010
    Stop hijacking thread!!!
     
  5. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    #45 timesurfer, Dec 2, 2010
    Last edited: Dec 2, 2010
    (OP)
    That is nice of you but as soon as testers and I get ur done that won't be necessary plus mainly myself and others are testing and learning scripting and IORRT is our project to learn about stuff...lol If after complete testing and development if XP can't be done with IORRT I myself will tell them to use your "Autorearm" since they will need an option if they are into the "rearm" thing ;)

    I think the nags are immediate and to have to tell people to install key upon install is a pain but retail users that are unhappy will have option
     
  6. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    #46 timesurfer, Dec 2, 2010
    Last edited: Dec 2, 2010
    (OP)
    @tomah

    Thank you very much for your efforts and testing. Lets keep on pushing for the XP code ok ;)
     
  7. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    It's no problem. Unfortunately, I am running into some issues which eventually deletes my OSPP service. I guess I found out what it's like to brick my copy of Office. I'll post as soon as I have something which works.
     
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    Yes virtual machine is way to go with this final IORRT XP testing.
     
  9. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    908
    10
    #49 DARKOR04, Dec 2, 2010
    Last edited: Dec 2, 2010
    TS did you test my code.... did it work.... did not.... let me know.... thanks


    Edit#1
    Installing M$ Office Professional Plus 2010 VL to test for myself...
     
  10. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
  11. DARKOR04

    DARKOR04 MDL Tester/Developer

    Jul 5, 2010
    497
    908
    10
    #51 DARKOR04, Dec 2, 2010
    Last edited by a moderator: Apr 20, 2017
    Code:
    @echo off
    @color 0c
    
    
    title IORRT
    :MAINMENU
    mode con: cols=45 lines=10
    CLS
    echo.
    echo.
    echo.  
    echo.    InfiniteOfficeRestoreRearmTask (IORRT) 
    echo.    
    echo.               A. Install
    echo.               B. Uninstall
    echo.               C. Restore/Rearm
    echo.               D. Status
    echo.               E. Exit
    echo.
      
    :CHOOSEACTION
    set /p userinp=    ^   Make your selection: 
    set userinp=%userinp:~0,1%
    if /i "%userinp%"=="A" goto Install
    if /i "%userinp%"=="B" goto Uninstall
    if /i "%userinp%"=="C" goto Restore/Rearm
    if /i "%userinp%"=="D" goto Status
    if /i "%userinp%"=="E" goto Exit
    echo.Try Again...
    GOTO CHOOSEACTION
    
    :Install
    CLS
    mode con: cols=64 lines=21
    title IORRT
    schtasks /Query /TN "IORRT" >NUL
    IF ERRORLEVEL 1  goto:STRINSTALL
    echo.
    echo. IORRT has already been installed!
    echo.
    echo Press any key to return to the main menu
    PAUSE 1>nul
    GOTO MAINMENU
    
    :STRINSTALL
    echo.
    echo. Installing Task Please wait...
    echo.
    mkdir "%SystemDrive%\IORRT"
    net stop osppsvc
    xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "%SystemDrive%\IORRT"
    reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\IORRT\Backup.hiv /y
    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" "%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.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 "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( 
    "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    ) ELSE ( "%SystemDrive%\Program Files(x86)\Common Files\\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    )
    schtasks /create /tn "IORRT" /tr '"%SystemDrive%\IORRT\IORRT.bat"' /sc daily /mo 1 /ru ""
    echo.
    IF Exist cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    ) ELSE ( cscript "%PROGRAMFILES(X86)%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus 
    )
    schtasks /query | FINDSTR /I "IORRT"
    IF ERRORLEVEL 1 echo IORRT is not yet Installed
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
    :Uninstall
    mode con: cols=64 lines=21
    title IORRT
    schtasks /Query /TN "IORRT" >NUL
    IF NOT ERRORLEVEL 0 goto:STRUNINSTALL
    echo.
    echo IORRT is already uninstalled
    echo.
    echo Press any key to return to the main menu
    PAUSE >nul
    GOTO MAINMENU
    
    :STRUNINSTALL
    echo.
    echo Uninstalling IORRT
    echo.
    net stop osppsvc
    xcopy /cheriky "%SystemDrive%\IORRT" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform"
    REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f
    REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f
    reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\IORRT\Backup.hiv
    net start osppsvc
    SET file=%SystemDrive%\IORRT
    IF EXIST %file% attrib -h %file%
    RD /S /Q  %file%
    DEL %SystemDrive%\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform\IORRT.bat
    schtasks /delete /tn "IORRT" /f
    IF Exist cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    ) ELSE ( cscript "%PROGRAMFILES(X86)%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus 
    )
    echo.
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
    :Restore/Rearm
    mode con: cols=64 lines=21
    title IORRT
    schtasks /Query /TN "IORRT" 0>nul 1>nul
    IF '%ERRORLEVEL%' EQU '0' (
    echo Restoring/Rearming IORRT
    ) ELSE (
    echo Install IORRT before you restore/rearm
    echo.
    echo Press any key to return to the main menu
    PAUSE 1>nul
    GOTO MAINMENU
    )
    net stop osppsvc
    xcopy /cheriky "%SystemDrive%\IORRT" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform"
    REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f
    REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f
    reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive%\IORRT\Backup.hiv
    net start osppsvc
    IF Exist "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( 
    "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    ) ELSE ( "%SystemDrive%\Program Files(x86)\Common Files\\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    )
    schtasks /delete /tn "IORRT" /f
    schtasks /create /tn "IORRT" /tr '"%SystemDrive%\IORRT\IORRT.bat"' /sc daily /mo 1 /ru ""
    IF Exist cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    ) ELSE ( cscript "%PROGRAMFILES(X86)%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus 
    )
    schtasks /query | FINDSTR /I "IORRT"
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
    :Status
    mode con: cols=64 lines=21
    title IORRT
    IF Exist cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    ) ELSE ( cscript "%PROGRAMFILES(X86)%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus 
    )
    schtasks /query | FINDSTR /I "IORRT"
    IF ERRORLEVEL 1 echo IORRT is not yet Installed
    echo.
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
    :XP CODE VERSION
    
    :Exit
    I just test it and it do not reinstall if task is installed... btw the las code has an error sorry this one posted tested and work.... just elimitated | FINDSTR because already asking for task name hehe my bad (/TN)

    I highlighted the modified code in red...
     
  12. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    #52 timesurfer, Dec 2, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Ok so install is just one feature so how determine other functions work for just XP all in one console

    e.g. B, C, D, E,

    I feel in the dark with this XP stuff
     
  13. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    #53 woebetide, Dec 2, 2010
    Last edited by a moderator: Apr 20, 2017
    Testing with cmd:

    In Xp, this works for create the backup.hiv
    Code:
    reg save HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform %SystemDrive%\IORRT\Backup.hiv
    
    Create a task works with this code and creates a IORRT.job in Windows\Taks\IORRT.job

    Code:
    schtasks /create /tn "IORRT" /tr %SystemDrive%\IORRT\IORRT.bat /sc daily /mo 1 /ru ""
    
    So, in XP it's maybe better to test if the file is in \Windows\Taks\, because schtasks /Query /TN "IORRT" doesn't work.

    Will test more later on.
     
  14. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    #54 woebetide, Dec 2, 2010
    Last edited by a moderator: Apr 20, 2017
    OK, install seem to work!
    Just the testing of the existense of the files can be improved i guess!
    Code:
    :Install
    
    IF NOT EXIST %SystemDrive%\IORRT\IORRT.bat (
    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"
    reg save HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform %SystemDrive%\IORRT\Backup.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" "%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.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 /create /tn "IORRT" /tr %SystemDrive%\IORRT\IORRT.bat /sc daily /mo 1 /ru "" /f >>%file%
    IF Exist "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( 
    "%SystemDrive%\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    ) ELSE ( "%SystemDrive%\Program Files(x86)\Common Files\\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" 
    )
    schtasks /create /tn "IORRT" /tr %SystemDrive%\IORRT\IORRT.bat /sc daily /mo 1 /ru ""
    echo.
    IF Exist cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    ) ELSE ( cscript "%PROGRAMFILES(X86)%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus 
    )
    IF NOT EXIST %SystemDrive%\Windows\Tasks\IORRT (
    echo IORRT is not yet Installed
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    ) ELSE (
    echo.
    echo Press any key to return to the main menu
    PAUSE 1>nul
    GOTO MAINMENU
    )
    This is the outcome
    All files in c:\IORRT and Winows\Tasks\IORRT created
     
  15. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    #55 timesurfer, Dec 2, 2010
    Last edited: Dec 2, 2010
    (OP)
    So you guys got the Backup.hiv to get placed in %SystemDrive%\IORRT?

    And you got task to work

    I noticed in this last batch it says two files copied but with win 7 3 files get created?

    And when IORRT truly installs it has 43200 minutes

    Always run as administrator

    Thank you for testing
     
  16. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    3 files are created!
     
  17. jtvgeo

    jtvgeo MDL Novice

    Dec 8, 2009
    23
    4
    0
    when picking option "C" does the program creates a "auto run startup" to run the program every time? or do we need to run this program on our own every 30 days?
     
  18. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,104
    270
    #59 timesurfer, Dec 3, 2010
    Last edited: Dec 3, 2010
    (OP)
    It is all automatic. Basically it resets 30 days 43200 minutes. Feel free to test all the features just wait couple minutes before tries inbetween. You can open task scheduler and run or just click "C". It resets stuff everyday so you are assured to be in initial grace. Use this on only Volume Office 2010

    1. Task that runs daily is automatic given your comp is on when task is suppose to run. Otherwise click "C" When you want IORRT to run task and it will reset the task date/time ;)

    2. "C" is the manual way in case after 25 days your office gives you notice to activate the choosing "C" will return to grace/trial period of 30 days 43200 minutes

    3. Basically install when comp will be on so task will run...lol

    Later
     
  19. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    #60 tomah, Dec 3, 2010
    Last edited: Dec 3, 2010
    Can somebody who has tested IORRT using Win7, check what is in your directory located at "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" when IORRT is NOT installed? I think I have a working XP (only 32bit tested) solution except for something that is happening during the xcopy from this directory.

    More specifically, if you install IORRT and then uninstall IORRT, does the folder "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" contain a copy of "backup.hiv"?

    Thanks.