"Hi guys, have you ever met this problem that Command Prompt keeps popping up with a black window which shows a pathway: c:\windows\system32\cmd.exe. I closed the window, but it popped up right away. I repeated several times, but the CMD window still came out continuously. Do you know how can I make this right? Please help me if you know how to get things right on my computer. Thank you very much."
According to the Microsoft community and Google search results, it's not a new problem that quite a lot of Windows users have encountered with the "CMD keeps popping up" error. However, most Windows users are still not quite clear about what they should do when such a problem comes out. So what can you do when such a problem occurs to you in Windows 10/8/7?
Fortunately, right now, in this article, you'll find 3 reliable methods and two effective options offered by EaseUS software to help you effectively fix CMD pops up random error. If you are having the same problem that CMD keeps coming out on your Windows PC, follow and get your problem fixed with offered solutions here right now.
Solutions to CMD.exe Keeps Popping up Error in Windows
Here, we'll provide you 3 methods to assist you in solving CMD popping up randomly errors, and you may selectively follow any one method to get this issue fixed on your own now:
Method 1. Run a Clean Boot to Fix CMD Popping up Randomly Error
Here, we'll show you how to clean boot Windows 10 as an example for you to follow and clean boot your PC.
- Notice:
- Please do remember to log on to your computer as an administrator so to perform a clean boot.
1. Click "Start" and search: msconfig > select "System Configuration";
2. Click "Services" on System Configuration > click and select "Hide all Microsoft services" > click "Disable all";
3. Click "Startup" on System Configuration > click "Open Task Manager";
4. Select each startup item on Startup and click "Disable" > close "Task Manager";
5. Click "OK" on the Startup tab of System Configuration > Restart PC.
By doing so, your computer will be able to work normally again, and you'll see that no CMD window pops up anymore.
Method 2. Run SFC to Fix CMD.exe Keeps Popping up Issue
SFC, known as System File Checker, can be used as a tool to scan all of the important Windows files on your computer and repair them if necessary. Missing or corrupted system files, such as DLL files, may cause CMD continuously popping up errors in Windows. Let's see how to run SFC to solve CMD.exe unusually shows up an error appears in your PC now:
1. Press Win + R > type: cmd and click "OK" to bring up Command Prompt;
2. Type: sfc /scannow and hit Enter;
3. Then restart the PC after the scan and check whether the CMD.exe issue is fixed or not.
Method 3. Repair Bad Sectors and Cleanup Virus That Causes Cmd Randomly Popping Up
If the system partition contains bad sectors or gets infected by an unknown virus or malware, CMD may not be able to work correctly. Therefore, the other way to fix CMD randomly popping up issues is to repair bad sectors with partition manager software and clean up the virus by applying anti-virus software to the PC.
Step 1. Open EaseUS Partition Master on your computer. Then, locate the disk, right-click the partition you want to check, and choose "Advanced" > "Check File System".
![choose Check Partition](/images/en/screenshot/partition-manager/screenshots/check-partition-1.png)
Step 2. In the Check File System window, keep the "Try to fix errors if found" option selected and click "Start".
![check the pop-up instructions](/images/en/screenshot/partition-manager/screenshots/check-partition-2.png)
Step 3. The software will begin checking your partition file system on your disk. When it completes, click "Finish".
![finish partition check](/images/en/screenshot/partition-manager/screenshots/check-partition-3.png)
Step 4. Download and run anti-virus software on a Windows PC and clean up all viruses or malware that causes CMD to pop up an error.
After this, restart the PC and check out whether everything works fine or not on your PC now.
If you need a fine and reliable anti-virus cleaning software, TotalAV is a reliable utility that you can try:
![](/images_2019/2023/11-20/totalav-logo.png)
TotalAV is an Award Winning Antivirus and Security Software. It Provides Real-Time Protection from Viruses, Malware & Online Threats.
Antivirus Protection Enabled
Extra Fixes for Command Prompt Pop up Randomly Error
If the previous 3 methods didn't solve your problem, you might try another two extra options here to stop Command Prompt popping up randomly issue:
Option 1. Install the Latest Update
1. Install the latest updates on Windows PC;
2. Restart the Windows system to repair corrupted files;
3. Open the Command Prompt window, type: dism /online /cleanup-image /restorehealth, and hit Enter;
4. Wait for the process to complete run: sfc /scannow command and hit Enter.
After this, reboot the PC and keep all changes. Then you can check whether CMD pops up randomly error is fixed or not.
Option 2. Create a New User Account
Sometimes, when a user's profile is corrupted, CMD may not be able to function normally. Here you may follow to try to create a new user account to see whether CMD.exe can work or not:
1. Press Win + R to open Run dialog > Type: control userpasswords2 and click "OK";
2. Click "Add" under the Users tab on the User Account window;
3. Click "Sign in without a Microsoft account (not recommended)" under the " How will this person sign in the window;
4. Click "Local Account" on next window > Choose a username > "Next" > "Finish";
5. Select the newly created user since the previous User Account window remains on the screen > click "Properties";
6. Click "Group Membership" > select "Administrator" > "Other" > "Administrator";
7. Click "Apply" > Click "OK".
After this, you may check and see whether the Command Prompt has stopped popping up or not. If not, try to reboot your PC and sign in with your new user account, then everything shall work just fine.
Was This Page Helpful?
![](/images/en/icon/tracy.jpg)
Updated by Tracy King
Tracy became a member of the EaseUS content team in 2013. Being a technical writer for over 10 years, she is enthusiastic about sharing tips to assist readers in resolving complex issues in disk management, file transfer, PC & Mac performance optimization, etc., like an expert.
Related Articles
-
Fixed: Windows 10 Reset Stuck or Windows 10 Fails to Reset
Tracy King/2024-01-11
-
Restore Deleted/Crashed Notepad ++ Files from Backup
Tracy King/2024-01-11
-
How to Check RAM Health with Windows Memory Diagnostic Tool [Full Guide in 2024]
Daisy/2024-01-11
-
How to Sync Two External Hard Drives in Windows 10 [Two Nice Tips]
Tracy King/2024-01-11
EaseUS Data Recovery Services
EaseUS data recovery experts have uneaqualed expertise to repair disks/systems and salvage data from all devices like RAID, HDD, SSD, USB, etc.