F5F Stay Refreshed Software Operating Systems How to obtain a list of tasks that trigger the automatic opening or closing of cmd windows?

How to obtain a list of tasks that trigger the automatic opening or closing of cmd windows?

How to obtain a list of tasks that trigger the automatic opening or closing of cmd windows?

S
StyleTrick
Senior Member
744
06-29-2021, 04:01 AM
#1
Hello
In Windows 11 Home (and even 10)
Occasionally a cmd window appears automatically
to perform a task, usually an update, and it closes on its own in about 2/3 seconds. It’s a brief occurrence.
Question
How can I get a list of tasks that are opened or closed automatically via cmd windows?
Thank You
S
StyleTrick
06-29-2021, 04:01 AM #1

Hello
In Windows 11 Home (and even 10)
Occasionally a cmd window appears automatically
to perform a task, usually an update, and it closes on its own in about 2/3 seconds. It’s a brief occurrence.
Question
How can I get a list of tasks that are opened or closed automatically via cmd windows?
Thank You

_
_JackSparrow
Member
77
06-29-2021, 04:59 AM
#2
This CMD window is displaying a message indicating it's running an unspecified task. If it doesn't match any known command, it raises concern.
_
_JackSparrow
06-29-2021, 04:59 AM #2

This CMD window is displaying a message indicating it's running an unspecified task. If it doesn't match any known command, it raises concern.

M
MattHaan
Member
131
06-30-2021, 07:28 PM
#3
The reason for this inquiry is the Command Prompt window. I aim to understand which action was performed.
M
MattHaan
06-30-2021, 07:28 PM #3

The reason for this inquiry is the Command Prompt window. I aim to understand which action was performed.

I
iStrafeRunner
Member
169
07-01-2021, 08:51 PM
#4
I believe you're referring to any executable files that display in the console after logging in. It seems there isn't a comprehensive list of executed programs. If the console windows appear after an update, they are likely related to the update. If they show up unexpectedly, these could indicate issues. The only straightforward methods I'm aware of are:
1. Review startup files using tools such as Microsoft internals' Autoruns.
2. Examine the Run Start/Run End/Triggers time in Windows Scheduler via "Task Scheduler (Local) > Task Status/Active Tasks."
If you can't identify the source and suspect something is wrong, BleepingComputer's malware removal help forum might assist in detecting unusual tasks.
I
iStrafeRunner
07-01-2021, 08:51 PM #4

I believe you're referring to any executable files that display in the console after logging in. It seems there isn't a comprehensive list of executed programs. If the console windows appear after an update, they are likely related to the update. If they show up unexpectedly, these could indicate issues. The only straightforward methods I'm aware of are:
1. Review startup files using tools such as Microsoft internals' Autoruns.
2. Examine the Run Start/Run End/Triggers time in Windows Scheduler via "Task Scheduler (Local) > Task Status/Active Tasks."
If you can't identify the source and suspect something is wrong, BleepingComputer's malware removal help forum might assist in detecting unusual tasks.

B
Baby_Nae
Member
63
07-02-2021, 01:16 AM
#5
Yes, it happens when you either turn on the laptop or it shows up suddenly (this occurred one day after a BIOS update).
I understand.
Typically this is what happens, even after a BIOS update.
Appreciate the help.
Thanks!
B
Baby_Nae
07-02-2021, 01:16 AM #5

Yes, it happens when you either turn on the laptop or it shows up suddenly (this occurred one day after a BIOS update).
I understand.
Typically this is what happens, even after a BIOS update.
Appreciate the help.
Thanks!

P
PandaBlack47
Member
120
07-02-2021, 02:01 AM
#6
I see what you're aiming to achieve. Confirming the need to track every time an *.exe file is initiated—whether through Task Manager, Startup settings, or Task Scheduler, or even when it starts via the Command Window. The goal is to identify any application launching with that extension, especially if it comes from the Command Prompt. You can check the Reliability History/Monitor and Event Viewer for error messages, warnings, and logs related to process launches. The Event Viewer supports custom filters, though flagging tasks launched directly via cmd may require some experimentation. It seems a PowerShell script with administrative privileges could be useful, possibly running in the background at startup to monitor cmd.exe and capture relevant entries. Alternatively, using the Get-EventLog cmdlet to search for "*.exe" in the Event Viewer logs might help. Also, you might need to employ Get-Process to detect when cmd.exe is executed. The Windows Update History file could be another useful resource.
P
PandaBlack47
07-02-2021, 02:01 AM #6

I see what you're aiming to achieve. Confirming the need to track every time an *.exe file is initiated—whether through Task Manager, Startup settings, or Task Scheduler, or even when it starts via the Command Window. The goal is to identify any application launching with that extension, especially if it comes from the Command Prompt. You can check the Reliability History/Monitor and Event Viewer for error messages, warnings, and logs related to process launches. The Event Viewer supports custom filters, though flagging tasks launched directly via cmd may require some experimentation. It seems a PowerShell script with administrative privileges could be useful, possibly running in the background at startup to monitor cmd.exe and capture relevant entries. Alternatively, using the Get-EventLog cmdlet to search for "*.exe" in the Event Viewer logs might help. Also, you might need to employ Get-Process to detect when cmd.exe is executed. The Windows Update History file could be another useful resource.