You bring up your Windows computer or come alive it up from hibernation and notice the CMD or the Command Prompt flash for a fraction of a second . Now you are wondering what was that . You did n’t have the CMD unfastened last time nor did you open or close it now so what ’s happening here ? Why is Command Prompt opening and then closing again automatically ? Allow us to excuse along with some solutions .

Table of Contents

1. Scheduled Office Task Is Running

This is probably the most common reason and where you should start out looking . A scheduled undertaking for Microsoft Office might be hightail it in the background leading to CMD flash momentarily on the screen . Here ’s how you could check that :

1.Press the Windows ikon , search forTask Scheduler , and spread it .

Some users describe they were ineffective to unfold the Task Scheduler this style . In that case , search for and openMMC ( Microsoft Management Console ) . fall into place onFile > Add / Remove Snap - in . You will see several options . Find and open Task Scheduler from here .

task scheduler in windows computer

2.From the left over sidebar , drill down to the booklet structure – Task Scheduler Library > Microsoft > Office . In the right windowpane pane , right - get across onOfficeBackgroundTaskHandlerRegistrationandDisableit .

2. Keep CMD Open

The trouble when the Command Prompt opens and fill up quickly is that before you may see what ’s happening , it disappear . AMicrosoft user find a solutionwhere you may keep the CMD exposed so you know what is happening .

1.Open elevated Command Prompt . To do that , seek forCMDand click onRun as administratoroption .

2.Copy - glue the mastery below and press Enter to head for the hills it .

open windows task scheduler from MMC

you may fill up the CMD now .

3. Automatic Maintenance Tasks

Windows run several care tasks in the screen background like update OS , updating Microsoft Store apps , prison term and day of the month , atmospheric condition , and so on . These tasks persist in the desktop , however , CMD may come out in short and then disappear when one of these tasks runs . you could discipline a list of such tasks in PowerShell .

1.OpenPowerShellwith admin rights from the Start menu .

2.Simply transcript - glue the command below to see a inclination of maintenance task .

disable windows office task scheduler

You will see the names of the task , the itinerary to the file or app name , and whether it is enable or handicapped .

4. Change Name of CMD.exe File

CMD is an executable Indian file . Renaming this file after create a transcript has helped ready the trouble for many user .

1.Drill down to the folder body structure below and find the CMD app in the list .

2.Now simplycreate a copy of the CMD fileusing the Ctrl+C and Ctrl+V keyboard shortcuts . Rename the original to something else likeCMD - oldand then rename the written matter toCMD . We recommend you backup the original ( now rename to cmd.old ) to a pen drive just in character you need to reinstate it .

open cmd with admin rights

5. Scan for Virus, Malware

It is possible thathackers have gained control or memory access to your Windows PCand are operate commands . chilling situation but not improbable these sidereal day .

execute Defender or 3rd - political party antivirus software that you may have installed . Do n’t take ready CAT scan but instead perform a full scan . It may take some sentence but you do n’t need to skim on this .

1.To prevail Defender , openWindows Security > Virus & threat protection .

open windows powershell with admin rights

2.Click onScan options .

3.SelectFull scanand click onScan nowbutton below .

6. Run Microsoft Safety Scanner

Safety Scanner , unlike Defender and other security lineament in Windows Security , does n’t come preinstalled . You have to download it smart every time you want to pass it . That ’s because it is updated every week .

SimplyDownload Microsoft Safety Scannerand double - click to open and track down it . Use the computing equipment normally or reboot it once to see if Command Prompt opens and close automatically again .

7. Run Malwarebytes

This is the last time we will ask you to ladder a scourge electronic scanner in this article . hope . While Defender is good at protecting Windows microcomputer from viruses , malware is a different beast . Download and start the free interpretation of Malwarebytes . Again , do a full scan .

Download Malwarebytes

8. Run SFC

SFC orSystem File Checkerwill check the wholeness of the system file that are critical for running the Windows OS .

1.Open CMD with admin right again as we did above in section 2 .

2.Copy - spread the commands below , one at a time , and in the same order they are observe .

list of automated maintenance tasks in windows

It may take some time for both the commands to run its course . You will see 100 % once the SFC CAT scan is complete .

9. Check Startup Folders

Now that we have predominate out that the microcomputer is not cut up or compromised in any way , permit ’s move on to startup folder . It curb a list of all the apps that are schedule to run or launch when Windows computer is booted for the first sentence . One of these apps may be using CMD in the background .

Pro Tip : interdict some apps from running on startup can improve the time it learn to start the computer and amend carrying into action as few apps are running in the background .

1.PressWindows key+Rto open up the Run prompt and typewrite the control below and dispatch Enter .

cmd app in windows

2.A pamphlet will open up . you may erase any CMD or Command Prompt related to entry here . In our case , the leaflet is empty but it differs from PC to PC as each one is configure differently .

10. Check Startup Apps

Some apps run mechanically in the background even when you are not using them actively or have n’t even opened them . That ’s because they are program to open when you commence or restart the PC . This also make the data processor slow as unneeded resourcefulness are consumed in the ground to hightail it these apps .

1.PressCtrl+Shift+Esckeys on the keyboard to open up the Task Manager .

2.Go toStartup appsfrom the left sidebar . You will see a list of apps . turn back the Status column . If it is enabled , the app will launch in the screen background when Windows starts . If you see any entry related to CMD , correctly - select it and selectDisable .

open virus and threat protection from windows security in windows pc

11. Check Using Autoruns

Autoruns is a utility tool from Microsoft that will show you a list of all the tasks and processes that run automatically without user input . A dear way to find secret or rogue apps that are running in the desktop without your knowledge . You will need to download it severally though . The inter-group communication is below .

For example , it bear witness that we have NZXT Cam , a play app hightail it in the scope and is schedule to run automatically . But it comes in handy only when you are gaming so it ’s a waste of resources . A good path to do some house cleaning and tick off all the autoruns .

Download Autoruns

windows security scan options

12. Use PowerShell or Terminal Instead

Command Prompt has been succeeded by PowerShell and now , Terminal . These two command public utility company do everything that the humble CMD does and then even more . The UI is also more user - friendly with multiple tabs , colour - coded program line / results , and more .

We have an in - depth scout onhow these three command utilities differand another just seed onhow to apply Terminal best .

13. Clean Boot

You canperform a clean bootto find out if an app is induce this . Sometimes , contradictory apps cause all sorts of problems including the one you are facing where CMD open and then close automatically .

Take Command

More often than not , the Command Prompt opening and windup mechanically on its own is a undertaking that ’s run in the background . You do n’t have to worry if it happens once or doubly and then does n’t . If it bump again , make certain your calculator is not infected . good run down the system as we described above .

Microsoft OneNote Icons and Symbols Meaning – App/Desktop

50 Years of Microsoft: 11 Times Microsoft Fumbled and Missed…

How to Transfer Windows 11 to a New Drive/SSD (Step-by-Step)

Microsoft Office is Now Free on Desktop – But With…

How to Install Windows 11 on PC With Unsupported Hardware

Windows 10’s End is Near: What Are Your Options?

Windows 11 Camera Not Working? Here’s How to Fix It

Windows 11 “Resume” Feature: Seamlessly Switch Devices

Windows 11 Installation Has Failed? Easy Fixes to Try

Windows 11’s Multi-App Camera Support: How to Enable and Use…

run full scan for windows security defender

open startup folder using run prompt

startup folder in windows

disable startup apps from task manager in windows

Article image