28

Windows 10 - Every 10 minutes or so, a command line window flashes on my computer. I'm afraid I may have been infected by something. I've been staring at the Task Manager (and process explorer) for days, and can't narrow it down to what is causing this. I've tried MSconfig to check the startup programs- nothing seems out of the ordinary. I've used Malwarebytes, and ran Tron Script once, and installed all the new windows updates, in hopes it would fix the problem, but it still persists.

I may have downloaded something.

Is there a way to check the Event Viewer to see what is launching this window?

gronostaj
  • 58,482
boscher50
  • 601

5 Answers5

47

Check the task scheduler, see if anything added in there could be triggering it.

40

I think it's fixed! I checked the Task Scheduler, like NetServOps said, and found one line item that was scheduled to run every 10 minutes. "Firefox Default Browser Agent A99BB431EF49E2C3". I disabled it and have not had the flash of the cmd prompt since! Thank you so much.

Ramhound
  • 44,080
boscher50
  • 601
14

I had the same issue a few years ago, and I found the culprit using the Sysinternals tool Process Monitor.

  1. Download Process Monitor.

  2. Filter/Filter/Operation is "Process Create"/Add

  3. Leave Process Monitor running until it happens again.

  4. Check the window:

screenshot of Process Monitor output

Heinzi
  • 4,258
2

I encountered the same issue. After update windows system (win 11), opening CMD will quickly crashed and disappeared, while Powershell works well.

This is how I fix the issue:

  1. Press Win+R to open the Run prompt.
  2. Type regedit > press the Enter button > click the Yes button.
  3. Navigate to this path: HKEY_CURRENT_USER\Software\Microsoft\Command Processor
  4. Right-click on the Autorun String value and select Delete.
  5. Click on the Yes button.
  6. Reboot the machine and the issue is gone.

I guess the root cause is that the update of Windows system add some broken autorun that breaks CMD. Hope they fix the issue in the latest update.

Refer: Fix Process exited with code 1 error in Windows Terminal, PowerShell or CMD

binaryDi
  • 121
0

I'm using the laptop and it looks like you but it was just when I plugged in. After it pops up and it closes all of my software are running