

There is a 3rd party software named Driver Setup Utility which runs tasks (via Scheduler) to update the drivers at certain intervals, causing the Command Prompt to open up and close automatically. Click on Change User Or Group, type System, OK, OK.Select OfficeBackgroundTaskHandlerRegistration, right-click, and select Properties.Open Task Scheduler, go to the \Microsoft\Office branch.Both the tasks are set to run under the “Users” account group. Setting OfficeBackgroundTaskHandlerRegistration to run under the “System” account will prevent the Command Prompt pop-ups from appearing, and the task will run hidden. When the above tasks run, they open and close a Command Prompt window in a flash, which can be very annoying to the user. OfficeBackgroundTaskHandlerRegistration runs every hour.OfficeBackgroundTaskHandlerLogon runs when a user logs on.There are two scheduled tasks in Task Scheduler Library Microsoft\Office: If that’s not it, then it could be a Scheduled Task. You can view the list of automatic maintenance tasks using PowerShell. This is especially if the Command Prompt window flashes when the system is left idle for a few minutes. If a Command Prompt window opens up and closes quickly, it could be due to automatic maintenance task(s) kicking in. The following are the common reasons why a Command Prompt window would open and close automatically. This post tells you the possible reasons why the Command Prompt window pops up randomly and how to find the exact name of the unknown task that last ran. By the time you open Task Manager and check the Processes or Details tab, the Command Prompt process or the unknown program would have already finished running. The Command Prompt window may close so quickly that you may not even have the time to see what it is running or even to take a screenshot using PrintScreen.
