This question already has an answer here:
I've noticed a window that pops open and then immediately closes at random on my Windows 10 system. I haven't been able to figure out yet how to figure out what is causing that. My malware scans haven't turned anything up yet.
I've tried using the Event Viewer however the search fails to run for events that happen in the specified time period. Apparently the query is too long. How can I go about logging what processes open/close or what windows are created?