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. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    That's what I have
     

    Attached Files:

  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    #62 timesurfer, Dec 3, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    I think it does but what I've experienced in my extensive testing it that as long as IORRT.bat isn't there we're ok. I've noticed if you delete those things your office will brick as that's where that's stuff get's put. Best way to see if that interfers is test it over and over and pay close attention

    Actually I may be incorrect but look at my uninstall function and notice I delete this cause I found out it messes things up in %SystemDrive%\IORRT because it puts two IORRT.bat's instead of just one like we need

    Code:
    DEL %SystemDrive%\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform\IORRT.bat
    This is one of my discoveries that made office work with no problems with Win 7 and Vista

    @woebetide

    Nice that's what we want...lol
     
  3. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    #63 tomah, Dec 3, 2010
    Last edited by a moderator: Apr 20, 2017
    It's not a big deal but what I'm finding is that I get a "cannot create a file when that file already exists" message when IORRT is installing after an uninstall. It seems to work anyways but I don't like seeing extra messages. It looks like the message is due to the backup.hiv file already existing prior to the REG SAVE line.

    Anyways, I'll just leave it in and after a little more testing, I should be able to post something up (assuming no problems are found).
     
  4. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    Just check before install to see if somethings there

    After an uninstall it shouldn't be there...lol Make sure to run as admin. When doing so me XP work I noticed I had to delete task before I re-created it because of those same type of messages

    Thanks for your interest in this project :)
     
  5. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    #65 tomah, Dec 3, 2010
    Last edited: Dec 5, 2010
    Going by the code, it should be there because when uninstalling, it copies the "%SystemDrive%\IORRT" directory over to "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" before removing the "%SystemDrive%\IORRT" directory. Then during the install, it gets copied back (with the backup.hiv) and then the REG SAVE line tries to regenerate the existing file. Anyways, I'll leave it in for now and we can always clean it up after it is verified working.
     
  6. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    #66 timesurfer, Dec 3, 2010
    Last edited: Dec 3, 2010
    (OP)
    If it's not interfering it might be ok. Like I said I tried to delete the other stuff in

    DEL %SystemDrive%\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform\IORRT.bat

    and it bricked office so that's what I have

    But deleting IORRT.bat was fine ;)
     
  7. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    #67 tomah, Dec 3, 2010
    Last edited by a moderator: Apr 20, 2017
    OK, here is the modified code which has been tested only with Office 2010 Pro Plus VL on XP SP3 (32bit):

    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 | FINDSTR /I "IORRT"
    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
    )
    md "%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 ) >>%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" 
    )
    schtasks /create /tn "IORRT" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc daily /mo 1 /ru ""
    echo.
    IF Exist "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    )
    schtasks | 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 | FINDSTR /I "IORRT"
    IF '%ERRORLEVEL%' EQU '0' (
    echo Uninstalling IORRT
    ) ELSE (
    echo IORRT is already uninstalled
    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
    SET file=%SystemDrive%\IORRT
    IF EXIST %file% attrib -h %file%
    RD /S /Q  %file%
    DEL "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\IORRT.bat"
    schtasks /delete /tn "IORRT" /f
    IF Exist "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" (
    cscript "%PROGRAMFILES%\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 | FINDSTR /I "IORRT"
    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" 
    )
    schtasks /delete /tn "IORRT" /f
    schtasks /create /tn "IORRT" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc daily /mo 1 /ru ""
    IF Exist "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    )
    schtasks | 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 "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" (
    cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus
    )
    schtasks | FINDSTR /I "IORRT"
    IF ERRORLEVEL 1 echo IORRTT is not yet Installed
    echo.
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
    :Exit
    
    NOTE/WARNING TO TESTERS: Please make sure you have a proper backup (be it a restore point, a disk image, testing on VM, ...) prior to testing, as I do not take any responsibility for the possible bricking of your copy of Office. I have tested this code myself on a virgin copy of XP SP3 which was fully updated without any other software installed and did not have any issues. Your results may vary.

    @timeshifter - please have a look at the code and see if there's anything you see which looks out of place. Unfortunately, I do not have a copy of Win7 available to compare with, so there may be something you notice that I have missed. Using some of your existing checks, I worked in the task check so that a file check is not required. Also, I removed the Win7 64bit code entirely as I was not able to check it (my XP is 32bit). Actually, if you still have your VM up and running, maybe you want to try it on a Win7 32-bit install and see if it works on it as-is
     
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    #68 timesurfer, Dec 3, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    lol...It is so true 2010 is a bricking bi#%ch :eek:

    The only thing I notice is the removal of the 64 stuff

    Thanks
     
  9. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    The modifications were mostly adding or removing of quotes and parameters. Also, there were some modifications to directory variables and the task check. Unfortunately, the changes were subtle and all over the place, so I did not make specific notes as to where the changes were. If needed, you could always do a simple FC command to compare the 2 to find what the actual differences are. Since the changes were minor, this MAY very well work on a Win7 install, untouched.
     
  10. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    I could try...lol *Prays it doesn't brick*
     
  11. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    Make sure you use your virtual machine!
     
  12. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    Hey that's my line :p...lol

    Still here no brick :eek:...lol

    1. Ok the "C" option worked

    2. The uninstall worked

    3. Upon install it said Backup.hiv was still there so delete it at uninstall should solve it :p...lol

    4. Status works for 32 but for bit 64?

    5. Task works

    Awesome
     
  13. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    Unfortunately, I'm not in a position to test on XP 64bit or Win7 at this time. Note that the 64bit code was removed from my posted code so your extra lines containing the x86 (I believe there were about 7 of them) would need to be re-added. Also, I'm not sure if XP 64bit can be tested as I'm not aware of too many people using it.
     
  14. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    lol...I just bricked office

    I went ahead in the clock to when office VL gives nags about day 25 into the future then I restored/rearmed and nags went away...lol

    Then I did status and it said notifications. Man MS really wan't you to activate damn :eek:

    But lucky for me after 30 bricks and 3 OS installs I finally learned to backup with CODY's toolkit then I did restore and no more noti's :p...lol

    Should we say forget about it to XP...lol
     
  15. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    Technically, you should never be in a position where you are in day 25, since the task is set for 1 day. Are you testing on XP or Win7? I'll leave the XP part to your descretion - this is your baby.
     
  16. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    I'm on Win 7 just trying to be accommodating for XP users...lol

    You are right unless someone is away from comp they should never have to deal with nags or whatever just want to make sure which is hard to do unless I turn off my comp for more than 30 days...lol At any day between 25-30 they could use option "C" and they be back just slightly worried if I restore after 30 days what will happen and we can't really go into the future with clock forwarding to prove an theory

    I'm happy with just Win 7 and Vista but lets see what the other testers have to say. We are only going away from XP further and further every day so I have mixed feelings :confused:
     
  17. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    I tried moving the clock in my VM ahead by a few weeks but after doing a status (which shows 9 days remaining), the clock seems to be corrected to my PC time and therefore I cannot do a proper test. I don't see why this would brick since, as you mentioned, the changes are minor. Oh well, let's wait for some test results (if anyone dares to try it).
     
  18. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    #78 timesurfer, Dec 3, 2010
    Last edited: Dec 3, 2010
    (OP)
    Office 2010 is the nightmare of softwares to find alternative use for

    Dude all I did was move clock to 25 days ahead and when I opened word I got msg. Then I used C option and they left but then did status and notifications which as we know is the state you can only activate in...lol

    Actually come to think of it it didn't get notifications till I turned back clock after restore so I think we're good just office is like a cop :busted_cop:
     
  19. tomah

    tomah MDL Senior Member

    Sep 25, 2010
    408
    355
    10
    #79 tomah, Dec 3, 2010
    Last edited by a moderator: Apr 20, 2017
    @timesurfer - I just had a quick question regarding your Win7 code (the "\\" marked in red). Is this just a typo, or does this putting this in, as opposed to just "\", do something special?

    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" 1>nul 2>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"
    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 /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 "" /f
    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" 0>nul 1>nul
    IF '%ERRORLEVEL%' EQU '0' (
    echo Uninstalling IORRT
    ) ELSE (
    echo IORRT is already uninstalled
    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
    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 /create /tn "IORRT" /tr '"%SystemDrive%\IORRT\IORRT.bat"' /sc daily /mo 1 /ru "" /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 
    )
    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 IORRTT is not yet Installed
    echo.
    echo.Press any key to return to the main menu
    pause > nul
    GOTO MAINMENU
    )
    
    :Exit
     
  20. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    #80 timesurfer, Dec 3, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Good eye

    I never noticed that...lol IORRT has just been sitting gathering dust since I previously thought that office installed in Notification and IORRT was not going to work out.

    What's really got me is why I am using %COMMONPROGRAMFILES% in the part where it get's put in IORRT.bat wher as I use %SystemDrive% in the rest of the code...lol

    It works regardless :eek:

    I will remove the extra back slash to see if it still works...lol

    Thanks for noticing ;)

    Edit: Yea it still works without the extra back slash...lol