Automating Quick Repairs in Office 365 ProPlus

Learn how to automate a Quick Repair to fix issues and file associations in Office 365 ProPlus. Brought to you by our compatibility guru Curtis Sawin.

If your users are running Office 365 ProPlus and another version of Office side-by-side, the time will come when you should uninstall the old version of Office. We call this (for lack of a better phrase) “un-side-by-siding” Office. As part of this process, you’ll need to run a repair of Office 365 ProPlus to re-associate the Office file extensions to Office 365 ProPlus.

With Office 365 ProPlus, you can perform either a Quick Repair or an Online Repair by opening Programs and Features in Control Panel. A Quick Repair will fix most issues and all activity happens locally. An Online Repair will essentially uninstall and reinstall Office 365 ProPlus. To complete the un-side-by-side process, a Quick Repair is the recommended (and fastest) method. Automating a Quick Repair is certainly possible and can be performed by executing different programs and command-lines.


So how does automating a Quick Repair help un-side-by-side Office? In short, it’s the second step in a two-step process. First, you remove the old version of Office (see the Useful Links section below), then you repair Office 365 ProPlus. One of the outcomes of a Quick Repair is that all Office file extensions are associated with Office 365 ProPlus apps. If you have System Center Configuration Manager, you can perform these two steps using a task sequence, for example.

To run a Quick Repair for 64-bit operating systems:

“C:\program files\Microsoft Office 15\ClientX64\integratedoffice.exe” RUNMODE RERUNMODE modetorun repair

To run a Quick Repair for 32-bit operating systems:

“C:\program files\Microsoft Office 15\ClientX86\integratedoffice.exe” RUNMODE RERUNMODE modetorun repair

Since build 15.0.4567.1509 was released in February 2014, a new command-line tool has replaced integratedoffice.exe. As some have expressed in the comments below, since this build was released, integratedoffice.exe no longer performs quick repair.

The new command-line tool is OfficeClickToRun.exe. OfficeClicktoRun.exe can be used to automate a quick repair starting with build 15.0.4623.1003 or later. This build was released in June 2014.

In short, OfficeClickToRun.exe takes over all the functionality that integratedoffice.exe provided. Below are the command-line options to use to automate a quick repair:

To run a Quick Repair for 64-bit operating systems:

“C:\program files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe” scenario=Repair DisplayLevel=False

To run a Quick Repair for 32-bit operating systems:

“C:\program files\Microsoft Office 15\ClientX86\OfficeClickToRun.exe” scenario=Repair DisplayLevel=False

Note that the only difference is the location of OfficeClickToRun.exe. OfficeClickToRun.exe is process that launches all Office applications, initiates the Click-to-Run installation processes, and handles several other tasks including streaming, bootstrapping, and monitoring for updates.

Setup command-line options for Office 2010
Setup command-line options for the 2007 Office system
How to uninstall or remove Office 2003 suites
How to uninstall Office 2003, Office 2007 or Office 2010 suites if you cannot uninstall it from Control Panel?

Comments (24)

  1. Anonymous says:

    Great question!

    This needs to be run under an elevated command-line.  If not, it won’t run, and you’ll see the following line in a “firefly*.log” file in your “C:windowstemp” folder

    2013/06/18 14:29:44:732::[5056] FFTask_C2RAPI::Runmode REPAIR blocked: 0x5

    We will update the article to explicitly mention this.  Thanks for your feedback!


    Curtis Sawin (MSFT)

  2. drensta says:

    I am having issues as well. I would like to automate an quick office repair but cannot get this command to work.

  3. Anonymous says:

    “C:program filesMicrosoft Office 15ClientX64integratedoffice.exe” RUNMODE RERUNMODE modetorun repair

    this command is not working for me too, it does not do anything on running the above command
    please help I have to repair

  4. Anonymous says:

    That depends on what you are asking.

    Quick and Online repair are the two repair options supported by the officeclicktorun.exe file. In an earlier post, 17 Nov 2014 10:09 PM, John demonstrated the use of the RepairType=QuickRepair switch supported by the executable. This forces the installation
    to do a quick repair (bypassing the dialog).

    If you don’t want "Online" to be an option in the "add / remove" dialog then change the ModifyPath string in the registry to force it to do a quick repair.

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallO365ProPlusRetail – en-us]
    "ModifyPath"=""C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe" scenario=Repair platform=x86 culture=en-us"

    change the above to…
    "ModifyPath"=""C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe" scenario=Repair platform=x86 culture=en-us RepairType=QuickRepair"

    The above is an example of the command on a Windows 7 64 bit OS, with a 32 bit install of Office 365 ProPlus – your paths may differ.

    You can also create a script that has the exact options you want and then disable making changes in Add / Remove by setting NoRepair and NoModify to 1.

    It should be feasible to do all this with either a script or a GPO (all are registry tweaks)

    Note: Both repair types require administrative privileges.

    Other command line switches supported by OfficeClickToRun.exe
    – scenario=Repair

    – platform=x86 | platform=x64 – Need to specify the platform version of Office. x86 is for the 32-bit version of Office. x64 is for the 64-bit version of Office.

    – culture=en-us – Need to specify the language identifier for the version of Office that is installed . If multiple languages are installed, just need to specify one of the languages and not all.

    – forceappshutdown=True | forceappshutdown=False – If set to True, will close all Office applications prior to running the Repair. If Office applications are open and forceappshutdown is not used or set to False, the Repair will fail.

    – RepairType=QuickRepair | RepairType=FullRepair – This specifies if the user is going to run a Quick repair (QuickRepair) or an Online Repair (FullRepair). Note – if running an Online repair, all Office applications will be reinstalled and will override any
    settings made in the configuration.xml file.

    – DisplayLevel=True | DisplayLevel=False – Setting the DisplayLevel to True will show a full UI and setting it to False will make the UI silent.

  5. saranrajappa says:

    Is there a way to disable "online repair" option. script, registry or GPO? please let me know

  6. Nate says:

    This command line is not working for me.  I am an admin on the computer running on a 32-bit OS.  I have the CTR version of Office 2013.  I copy and paste the following at the command line:

    “C:program filesMicrosoft Office 15ClientX86integratedoffice.exe” RUNMODE RERUNMODE modetorun repair

    Nothing happens.  The HDD LED has no activity and nothing else.  What is supposed to happen when you run that command line?  Is it the same repair that should come up as the control panel's repair?

  7. Golden Chen says:


    I just running that command line under admin permision CMD and turn UAC off.

    It still not happen. Could plz tell me what can I do? make this command line work.

    Thank you.

  8. Stephen Matthews says:

    Hi, is there an update to this now Office Click to Run is running a different exe?
    "C:Program FilesMicrosoft Office 15ClientX86OfficeClickToRun.exe" scenario=Repair platform=x86 culture=en-us
    Still brings up the GUI

  9. Charlie Cerny says:

    Stephen Matthews : this is good and now how to create automaticaly quick repair ?

  10. Chris says:

    This doesn't work for me either like the first person said, even when logged in as the local admin or domain admin, you issue the command and it does nothing.

  11. Val Méndez says:

    No me ha servido absolutamente para nada. Lo he ejecutado por linea de comando y no me ha dicho nada. Luego lo he ejecutado directamente y me dice que necesita cerrar programas (ni siquiera me dice cual) y cuando le digo que si me cierra el OneDrive y
    no me dice absolutamente nada. Ni un triste mensaje. Vuelvo a hacer que se abra OneDrive y el problema no se resuelve. La verdad es que mi experiencia con OneDrive está siendo horrorosa. De momento me parece un producto pésimo.

  12. Anonymous says:

    Background The June 2014 release (build 15.0.4623.1003 and later versions) of Office Click-to-Run from

  13. mike says:

    This isn't working for me either. Has their been an update to fix this?

  14. kyle says:

    I broke it up like this and can get it to display but, would like more automation. I want to find out what the commands are to chose " Quick repair" or "Online repair" I think the disaply flase is hanging up cause it does not know which one to choose.
    If you try to change Scenario to anything other than repair it will not run.

    cd "C:Program FilesMicrosoft Office 15ClientX64

    "officeclicktorun.exe" DisplayLevel=true scenario=Repair

  15. Anonymous says:

    Background The June 2014 release (build 15.0.4623.1003 and later versions) of Office Click-to-Run from

  16. leroy says:

    Hi I'm looking for all the switches that can be used with integratedoffice.exe

    I have an older version of Officce (15.0.4535.1004 ) and require to manipulate the same.
    Can anyone point me in the right direction ?

  17. Tim says:

    Add me to the list of those that can't get this to work. I can't find any reference for the command line switches or syntax to make this work…we'd like to be able to script these types of repairs for our Tech Support helpdesk workers.

  18. John says:

    Try this:

    officeclicktorun.exe scenario=Repair platform=x64 culture=en-us RepairType=QuickRepair DisplayLevel=True

  19. Josh says:

    Is there anyway to use officeclicktorun to downgrade a version? My company needs a solution to revert back in case there is an issue with an update.

  20. Matt says:

    To revert to a previous version of Office 365 Click-to-Run…

    The "OfficeC2RClient.exe" command-line options are:

    updatepromptuser (true or false) – enables or disables the user prompt indicating that an update is available for installation. The default is false.

    forceappshutdown (true or false) – All running Office applications will shut down and the update will commence. The default is false.

    displaylevel (true or false) – shows or hides the update dialog box. The default is true.

    updatetoversion (version to install) – this is used to choose the specific version to install and can be used to install older versions if a rollback is required. If you don’t use this, the updating process will default to installing the most current update

  21. Matt says:

    If using an Office 365 build lower than 15.0.4569.1007 you use integratedoffice.exe to perform a repair, otherwise you use the new command-line tool OfficeClickToRun.exe (as stated in the article above) – what build of Office 365are you running?

  22. Louise says:

    Since when did a QUICK REPAIR relate to 6 hours in repair and still fixing!!! Is there anything I can do to speed this up?

  23. sam says:

    I ran this to repair file associations. The utility ran as described but did not fix the associations.

Skip to main content