Command Prompt Open and Closes on Windows 11

If you use Windows 11, then you might have seen that the Command Prompt Open and Closes quickly. When playing games on Windows 11, the command prompt frequently appears, disappears, and cannot even be minimised. Either when you log in to your system or repeatedly during 47 minutes of computer use, this problem appears. No more worries; we will help you overcome this issue by providing the most effective and 100% effective solutions for Command Prompt Open and Closing on Windows 11. 

Why does the Command Prompt Open and Closes on Windows 11?

The potential causes of Windows 11’s Command prompt opening and shutting include the following:

1. The task scheduler is most likely to blame if this problem occurs at regular intervals and keeps happening because of certain Windows services or third-party programmes.

2. Malware or viruses are trying to download something from the internet while disguising themselves as Windows services or programmes.

How to Fix Windows 11 Command Prompt Open and Closes?

You can accurately implement the suggested fixes to resolve the issue with the Command prompt intermittently appearing and disappearing on Windows 11.

Solution 1: Check for Viruses or Malware to Fix Command Prompt Opens, then Closes on Windows 11

When a Windows 11 command prompt open and closes after downloading data from the internet, malware and viruses may be present.

Solution 2: Use Task Scheduler to Fix Command Prompt Pops Up and Closes on Windows 11

Disabling scheduled activities can assist in resolving the command prompt popping up and closing issues on Windows 11.

1. As said in Solution number, open the Task Scheduler and select the Task Scheduler Library from the left pane.

2. Go through the list of scheduled tasks and disable any that seem out of place.

Solution 3: Run DISM Scan to fix Windows 11’s pop-up and close-of-command prompt issue

1. Click the Start menu and select Command Prompt.

2. After that, choose Run as administrator.

command prompt run as administrator - Command Prompt Open and Closes

3. Type the command that follows and hit Enter.

Cleanup-Image / CheckHealth / DISM / Online

Enter DISMexe

The DISM will be run to check for any data corruption that may need to be fixed in order to resolve the Windows 11 command prompt popping up and shutting issue.

Solution 4: Perform a clean boot

1. Click the Start button, then in the search box, enter: msconfig

msconfig windows 11 - Command Prompt Open and Closes

2. Select Services in the System Configuration window.

3. Next, select Disable all after clicking Hide all Microsoft services.

check the Hide All Microsoft Services box

4. After that, select Open Task Manager under Startup.

5. After that, disable every starting component.

6. Finally, press OK, then restart your computer.

Turn on Fast Startup you need to uncheck - Command Prompt Open and Closes

Your machine will be able to operate normally once more, and Windows 11’s command prompt won’t keep opening and shutting.

Solution 5: Turn off the Office Background Task Windows 11’s Command Prompt appears before closing:

A scheduled activity that causes the command prompt to open and then close on Windows 11 is known to be created by Microsoft Office.

To disable office background tasks, take the following actions:

1. Click Run, enter the following, and then click OK.

taskschd

2. After the task scheduler has opened, double-tap the Task Scheduler Library folder inside of it.

3. Next, choose the Office folder from the left window, followed by the Microsoft folder.

Task Scheduler Library - Command Prompt Open and Closes

4. Find the job titled “OfficeBackgroundTaskHandlerRegistration” now.

5. Disable it by selecting it.

Frequently Asked Question – Command Prompt Open and Closes on Windows 11

Q1. How can I switch to administrator mode in the cmd prompt?

To achieve this, choose Run as administrator from the context menu when you right-click the Command Prompt in the Start menu.

Q2. Why did my Windows suddenly display the command prompt?

The following are some possible causes of the Command prompt opening and shutting on Windows 11:

1. The task scheduler is most likely to blame if this problem occurs at regular intervals and keeps happening because of certain Windows services or third-party programmes.

2. Malware or viruses are trying to download something from the internet while disguising themselves as Windows services or programmes.

Q 3. How do I stop CMD EXE from running at start-up?

By doing a clean boot using the following methods, you can resolve this problem:

1. Click the Start button, then type “msconfig” into the search bar.

2. Select Services in the System Configuration window.

3. Next, select Disable all after clicking Hide all Microsoft services.

4. After that, select Open Task Manager under Startup.

5. After that, disable every starting component.

6. Finally, press OK, then restart your computer.

Q4. In the cmd prompt, how do I make a user a local admin?

Answer: To do that, you must take following actions:

1. Right-click the Command Prompt after launching it from the Start menu. A drop-down menu will display as you watch.

2. When prompted, choose Run as Administrator and select yes.

3. Next, fill out the Add User instruction that displays by entering the username and password.

4. Lastly, give the user administrative rights.

Conclusion

With this information, we hope you can now resolve the issue with Windows 11’s Command Prompt constantly opening and closing. If you still can’t figure out the issue, you can contact us using the chat box in the bottom right corner or the comment section below. We’ll do our best to assist you in fixing your Windows problems.

Leave a Reply

Your email address will not be published. Required fields are marked *