ACTIVE MALWARE WINDOWS TESTED: WINDOWS 10, WINDOWS 11

How to fix
C:WindowsSystem32cmd.exe window popping up
on Windows

Resolve the annoying C:\Windows\System32\cmd.exe pop-up issue on Windows 10 and 11 quickly with our expert-tested solutions. Fixed in minutes!

How to fix C:WindowsSystem32cmd.exe window popping up in Windows?
Quick Summary
Error severity
Medium
Est. time
10 minutes
Offer Fortect PC Suite
Start fix →
Ad · we may earn a commission
0 Comments
01

What causes How to fix C:WindowsSystem32cmd.exe window popping up in Windows?

  • Scheduled tasks
  • Startup programs
  • Scripts running in the background
  • Conflicts between installed applications
  • Driver issues
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

Randomly, I get a pop-up every 10 minutes or so which is titled "C:\Windows\System32\cmd.exe" and it's just empty. I close it and then it comes back later. What is this and how can I remove it?

"C:\Windows\System32\cmd.exe" pop-up appearing unexpectedly is something that you might have noticed sometimes while using your Windows computer, where a window of the command prompt opens up randomly. This can be worrisome because if this starts happening a lot, it will interrupt your workflow and make you think, "Is my system stable or secure?" The key to fixing this is understanding why it happens.

The presence of the "C:\Windows\System32\cmd.exe" window, which is usually for background tasks or with command line execution requirements, can be due to scheduled tasks, startup programs, or scripts set up via system maintenance and software updates.

Additionally, some software in general (system utilities or antivirus programs) may initiate the command prompt to run commands as part of their routine operations. However, in some cases, this window will also appear due to conflicts between installed applications, or because a driver is not functioning properly with another software application that has been installed (an old version of a program that remains), causing an automatic script to run.

Fixing the problem with the unexpected appearance of the "C:\Windows\System32\cmd.exe" window is something you should look into, and [d1] PC repair could be one of the easiest ways to do so. Alternatively, you can jump into a manual solution, such as checking your list of scheduled tasks, startup programs, and scripts running quietly in the background.

It is also advisable to ensure that all installed software packages are updated and that there are no conflicting programs. In certain situations, diving deeper into the system logs or utilizing diagnostic tools may be required to find out exactly where it is coming from and what needs to be done to remove the "C:\Windows\System32\cmd.exe" window popping up out of nowhere.

How to fix c windows system32 cmd exe window popping up in windows copy
How to fix c windows system32 cmd exe window popping up in windows copy

Fix 1. Run SFC and DISM

Start with ensuring that it's not the system file corruption that's causing problems.

  • Type cmd in Windows search.
  • Right-click on Command Prompt and pick Run as administrator.
  • User Account Control window will show up - click Yes when prompted.
  • Then, copy and paste the following command, pressing Enter after:
    sfc /scannow
  • Wait till the scan is finished. If Windows finds system file integrity violations, it will attempt to fix them. After this, use the set of the following commands, pressing Enter each time:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth
  • (Note: if you get an error executing this last command, add /Source:C:\RepairSource\Windows /LimitAccess to it and try again).
  • Close down the Command Prompt and restart your system.

How to fix c windows system32 cmd exe window popping up in windows sfc dism
How to fix c windows system32 cmd exe window popping up in windows sfc dism

Fix 2. Scan for malware

You can use Microsoft Safety Scanner, employ a reputable third-party app, or use the built-in Defender offline scan:

  • Type Windows Security in the Windows search bar and hit Enter.
  • Select Virus & threat protection.
  • Pick Scan options.
  • Choose Microsoft Defender Offline scan and click Scan now.
  • Your computer will immediately restart and begin a deep scan.

How to fix c windows system32 cmd exe window popping up in windows scan for malware
How to fix c windows system32 cmd exe window popping up in windows scan for malware

Fix 3. Run a Clean Boot

  • Type msconfig in Windows search and press Enter.
  • Go to the Services tab.
  • Mark Hide all Microsoft services and select Disable all.
  • Go to the Startup tab and click Open Task Manager.
  • In the Task Manager, right-click on each of the items and select Disable, then close the Task Manager.
  • Go to the Boot tab, and tick Safe Boot.
  • Click Apply and OK, and restart your PC.
  • To find out which app(s) is causing conflicts, enable each of the processes (or you can do it in groups), restart, and see if the problem persists. Repeat until you find the faulty app, then either update or uninstall it.

How to fix c windows system32 cmd exe window popping up in windows clean boot
How to fix c windows system32 cmd exe window popping up in windows clean boot

Fix 4. Change the Default Terminal app

In 2022, the default terminal environment has been changed from "Windows Console Host" to "Windows Terminal." This results in certain apps opening a C:\Windows\System32\cmd.exe window by some apps. To resolve this, follow these steps:

  • Right-click on Start and pick Settings.
  • Select System on the left.
  • On the right side, click For Developers.
  • Look for Terminal from the list.
  • From the drop-down menu next to it, select Windows Console Host.
  • Restart your computer.

How to fix c windows system32 cmd exe change terminal settings copy
How to fix c windows system32 cmd exe change terminal settings copy

Fix 5. Check Task Scheduler

Verifying tasks in Task Scheduler ensures that no problematic or unwanted tasks are running, which could be causing system issues.

  • Press Win+R, type taskschd.msc, and press Enter.
  • Expand Task Scheduler Library on the left panel.
  • Review scheduled tasks for any that look unfamiliar or unnecessary.
  • Right-click on any suspicious tasks and select Disable.
  • Close Task Scheduler and restart your computer.

Fix 6. Repair-install Windows with Media Creation Tool

  • Visit the official Microsoft website and download Windows 10 installation media (Windows 11 version).
  • Double-click the installer, select Yes when UAC shows up, and agree to the terms.
  • Select the ISO file and click Next, then follow the instructions to finish the process.
  • Right-click on ISO and click Mount.
  • Open the location of the ISO, right-click on it, and select Mount.
  • Launch the installer.
  • Select Upgrade this PC now and click Next.
  • Windows will start downloading the needed files.
  • Agree to the terms once again and click Next.
  • Before installing, ensure you are happy with your choices (otherwise, you can click the Change what to keep option).
  • Finally, click Install to begin the upgrade process.

How to fix c windows system32 cmd exe repair install windows copy
How to fix c windows system32 cmd exe repair install windows copy

Bottom line

To fix the unexpected appearance of the 'C:\Windows\System32\cmd.exe' window, you can start by checking your scheduled tasks and startup programs. Additionally, ensure all installed software is updated and look for any conflicting programs. If these steps do not resolve the issue, consider running SFC and DISM to check for system file corruption.

Frequently asked questions

The cmd.exe window may pop up due to a scheduled task, startup program, or malware. Check Task Scheduler and your startup items to identify the cause.

You can stop the cmd.exe window by disabling the offending startup application or scheduled task that triggers it. Use the Task Manager or Task Scheduler for this purpose.

It's not recommended to ignore it, as it could indicate a system issue or malware. Investigate the source to ensure your Windows 10 or Windows 11 system is secure.

Did this fix work for you?
Alice Woods

Written & verified by

Security Analyst
Virus removal Rootkit detection System integrity verification Firewall configuration Antivirus tools testing

Alice Woods is a security analyst who covers antivirus software, virus removal procedures, and post-infection system verification. She tests security tools hands-on before recommending them and writes removal guides backed by direct malware analysis rather than theoretical instructions. Alice's background in security operations gives her guides an edge in accuracy — she understands how infections behave at a system level, which lets her identify the full scope of what needs to be cleaned. Her writing is trusted by both home users and IT professionals handling compromised machines.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →