Office Installation Errors

Run Microsoft 365 Office Quick Repair from the Command Line

Tauseeq MagsiTauseeq Magsi Nov 25, 2026 868 views

Question details

Run a Quick Repair of an Office Click-to-Run installation from a command prompt or batch file.

Run Microsoft 365 Office Quick Repair from the Command Line
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.
Before you start

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.

Solution 1Recommended

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.

1
Locate the repair executable

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.

2
Check Office architecture and language

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.

3
Open an elevated command prompt

Open Start, search for Command Prompt, and select Run as administrator. Approve the Windows prompt if asked.

4
Run Quick Repair

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

5
Verify the result

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.

Run Office Click-to-Run Quick Repair from an elevated command prompt
Silent repair: DisplayLevel=False requests a repair without the normal interface. If the command is not accepted or the repair does not resolve the issue, use the Windows repair controls instead.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXContinue working on compatible Office files while troubleshooting Microsoft 365Use familiar document, spreadsheet, and presentation toolsChoose a free, lightweight office suite
microsoft office alternative - wps office

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.