0

From time to time a cmd windows popps up (or two of them) for a split second I cannot track what was started. Is there a way to monitor the cmd/powershell window? Sysmon?

Or is there a way to force cmd window to not close when command finishes?

The main issue is that I cannot see what command was started

kol23
  • 109
  • 2

1 Answers1

2

For a one of situation, procmon would be the easiest choice enter image description here

  1. Disable the registry, file and network activity to minimize the amount of logging.
  2. Make sure the process activity is enabled
  3. start capturing and wait for the popup (end capturing once the popup has, well, popped up)
  4. double click the process
  5. get the command line