cmd.EXE Keeps Popping Up [SOLVED]
source link: https://www.shellhacks.com/cmd-exe-keeps-popping-up-solved/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
cmd.EXE Keeps Popping Up [SOLVED]
Many Windows users are encountering a problem of a command prompt cmd.EXE
window that opens randomly and closes so quickly, that there is no time to do anything with it.
If you are also facing the black cmd.EXE
window that keeps popping up and disappearing, most of all it is triggered by some automatic task that is launching it periodically.
This note shows how to identify and disable the scheduled task that causes cmd.EXE
to keep popping up.
cmd.EXE Keeps Popping Up
Launch PowerShell and run the following command to list scheduled tasks:
PS C:\> Get-ScheduledTask | Get-ScheduledTaskInfo | Select TaskName, TaskPath, LastRunTime ` | Sort LastRunTime -Descending | out-gridview
The scheduled tasks displayed by the command are sorted by LastRunTime
, so if the cmd.EXE
window popped up recently, it will be easier to identify the task that was responsible for that:
In my case, I’ve noticed that the cmd.EXE
had popped up at 8:49 PM
and later I determined that it was triggered by the “BatteryStatusTest” task.
To identify which of the highlighted tasks was guilty in triggering the cmd.EXE
to pop up and close, I had to search for each of them in “Task Scheduler”.
To open “Task Scheduler”, press ⊞ Win + R that will start the “Run” dialog, type in the taskschd.msc
command and click “OK”:
In “Task Scheduler”, search and “Run” each of the suspected tasks in the corresponding paths to see which of them triggers the cmd.EXE
window to pop up and then disappear:
Once the bastard is identified – right-click and “Disable” it to not see anymore the annoying popping up cmd.EXE
window.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK