
You can choose any integer property of Win32_Process class, e.g. Note that each monitor should return integer value, so you should SELECT some integer property of the process to use it as a monitor performance value. The monitor will show the number of running processes with the specified name, so if the number is ‘0’, than the process is stopped and should be restarted.Īlso, you can use a custom WMI query to find if the process is alive.

How can I detect that a process no longer runs and restart it?Ī: You can use WMI Process monitor to check if the process in question is alive: set the ‘Name’ monitor parameter to the process executable name, like ‘startup.exe’ and leave the ‘Metric’ parameter as default ‘Processes total’. Q: Certain processes on my Windows computer should always be running. All rights reserved.How to monitor a Windows process and restart it when it goes down? Step 13: - Send the export file to Squish technical support, if requested.Ĭopyright © 2023 The Qt Company Ltd. (If no entries are shown, clear the filters via Ctrl+L, Reset.) and browse the events and the process tree to ensure that it contains the expected entries.

Load the export file into Process Explorer via File > Open.

Step 12: - Verifying the exported information Step 11: Export the collected information Step 10: Add desired process and its sub-processes to filter Step 9: Locate desired application/process

Launch the desired application and perform the steps that result in the suspected sub-processes to be started. In the dialog shown after first start or opened via Ctrl+L add a filter for "Operation is Process Create" (choose " Reset" to clear/restore the default filters): Step 1: Start Process Monitor (procmon.exe) Process Monitor requires Administrator rights/elevation, so starting it may result in the Windows UAC (User Account Control) dialog to ask whether to start this applicaiton. Sometimes it is required to know exactly which process starts which other processes. Analyzing (sub-)processes started by other processes
