How to Fix Command Prompt Flashing When Opening Microsoft Office Apps
Question details
Users experience a brief Command Prompt window flash when launching Microsoft Office applications.

- Product
- Microsoft Office
- Device & OS
- Windows
- Scenario
- Opening Microsoft Office applications such as Word or Excel on a Windows PC.
- Observed behavior
- A black Command Prompt window briefly flashes on the screen before the requested Office application fully opens.
Ensure your computer is connected to the internet and that you have administrative privileges to modify Windows application settings.
Perform an Online Repair and Update Office
Use the built-in Windows repair tool to fix corrupted Office files and install the latest patches that resolve background task glitches.
Microsoft periodically releases updates to fix known bugs, including background tasks (like the Office Background Task Handler) that mistakenly trigger visible Command Prompt windows.
Click the Start menu and go to Settings > Apps > Installed apps (or Apps & features).
Scroll down to locate your Microsoft Office installation. Click the three dots (or right-click) and select Modify.
Choose the Online Repair option and click Repair. Wait for the process to download and reinstall fresh files.
Once repaired, open Word or Excel, navigate to File > Account, click Update Options, and select Update Now.

Remove Conflicting Older Office Installations
Uninstalling older, conflicting versions of Microsoft Office can prevent registry and startup task overlaps.
Investigate and Disable Faulty Add-ins
Launch Office in Safe Mode to determine if a third-party add-in is triggering the command-line script.
Switch to WPS Office for a Fast, Glitch-Free Experience
If Microsoft Office continues to experience startup issues like flashing command prompts, consider switching to WPS Office. It is a highly compatible alternative that opens Word, Excel, and PowerPoint files instantly without heavy background processes.
- 1. Download and Install: Get the free WPS Office installer from the official website and run it on your PC.
- 2. Set as Default: Choose WPS Office as your default application for opening documents, spreadsheets, and presentations.
- 3. Open Your Files Instantly: Double-click any existing Microsoft Office file to open it quickly and without startup errors.

Frequently Asked Questions
Is the flashing Command Prompt window a virus?
In most cases involving Microsoft Office, it is not a virus. It is typically a background process, such as the officebackgroundtaskhandler.exe running a scheduled task. However, if the issue persists outside of Office apps or you notice other strange behavior, it is recommended to run a full system antivirus scan.
Can I stop the Office Background Task Handler manually?
Yes. You can open the Windows Task Scheduler, navigate to Task Scheduler Library > Microsoft > Office, and right-click 'OfficeBackgroundTaskHandlerRegistration' to disable it. However, installing the latest Office updates usually resolves the issue without requiring manual intervention.
Why did an Online Repair not fix the issue?
If an Online Repair fails to stop the flashing window, the issue is likely caused by a third-party COM add-in running a script, a conflicting older version of Office left on your system, or an external startup task rather than damaged core Office installation files.




