January 2008
Beginner
352 pages
9h 6m
English
Although WMI is great for gathering information, it can also be a very powerful monitoring and debugging tool. In this section we will use WMI to monitor the processes on our system and then use WMI to shut down an application that we define as behaving poorly. Because we don’t want to negatively affect our system at the moment, we will simulate this sitation by using NotePad.exe.
We need to be able to store the process or processes that we want to monitor for. Example 8-10 shows the updated configuration file with the process element added.
Example 8-10. Process monitoring elements.
<Process>Notepad.exe</Process>
We can implement the process element in several ways, depending on the complexity ...
Read now
Unlock full access