Run Microsoft 365 Office Quick Repair from the Command Line
Question details
Run a Quick Repair of an Office Click-to-Run installation from a command prompt or batch file.

- Product
- Microsoft 365 Apps for Office, formerly Office 365
- Device & OS
- Windows
- Scenario
- An administrator or user wants to repair an Office Click-to-Run installation using a command or batch file.
- Observed behavior
- The desired result is a Quick Repair initiated with OfficeClickToRun.exe and parameters matching the installed Office configuration.
Close all Office apps, confirm that Office uses Click-to-Run, and locate OfficeClickToRun.exe on the PC. Check the installed Office architecture and language before choosing the platform and culture parameters.
Run Office Click-to-Run Quick Repair from an elevated command prompt
Use this method to initiate Quick Repair from the command line or a batch file when the Click-to-Run executable is available.
The executable path and supported parameters can vary by Office version. The command below is an example for an installation with the executable in the Office 15 ClientX64 folder; adjust it to match your installation.
In File Explorer, search for OfficeClickToRun.exe. One older installation path is C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe; a common newer location is C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe.
In an Office app, open File > Account > About to check whether Office is 32-bit or 64-bit. Use x86 for 32-bit Office or x64 for 64-bit Office, and set culture to the appropriate installed language, such as en-us.
Open Start, search for Command Prompt, and select Run as administrator. Approve the Windows prompt if asked.
Enter the following example, replacing the quoted path and parameter values as needed: "C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe" scenario=Repair platform=x86 culture=en-us RepairType=QuickRepair DisplayLevel=False
After the repair process finishes, open an Office app and check whether it works as expected. To use a batch file, place the adjusted command in a .bat file and run it as administrator.

Use Windows settings to run Quick Repair or Online Repair
Use the graphical repair option if the command-line path or parameters do not work, or if Quick Repair is insufficient.
Work on Office files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office files. It supports a smooth transition for everyday document work, although it does not repair a Microsoft 365 installation.

Frequently Asked Questions
How do I find OfficeClickToRun.exe?
Search for OfficeClickToRun.exe in File Explorer. A common newer location is C:\Program Files\Common Files\Microsoft Shared\ClickToRun; older installations may use a different Office folder.
Should I use x86 or x64 in the repair command?
Use x86 for 32-bit Office and x64 for 64-bit Office. To check, open an Office app and go to File > Account > About.
Can I run the repair command in a batch file?
Yes. Put the adjusted OfficeClickToRun.exe command in a .bat file, then run the batch file as administrator. Quote the executable path if it contains spaces.
What should I do if Quick Repair does not fix Office?
Open Windows Settings > Apps, find Microsoft 365 or Office, and select Modify or Change. Choose Online Repair and follow the prompts; it requires an internet connection.
Does this command work for every Office installation?
No. It applies to Click-to-Run installations, and the executable path and supported parameters can vary by version. If the command is unavailable or fails, use the repair option in Windows Settings.




