Entries Tagged as 'Sysinternals Suite'

Using PsList to keep track of Processes

Sysinternals Suite No Comments »

The Windows Sysinternals Suite by Mark Russinovich is a great set of tools.  I use them all the time, executing them from ColdFusion and parsing the results.  Here’s a quick example of using the PsList.exe tool to inspect the processes on your server, or another machine on your network.

<cfexecute 
 name = "#absolutePath#\PsList.exe"
 arguments ="\\#serverName# #processname# -u #accountUsername# -p #accountPassword# -accepteula"
 variable ="pResults"
 timeout ="5"
 />
<pre>#pResults#</pre>
A few things to keep in mind:  1) you need to use the –accepteula switch the first time you use the command, or it will time out waiting for a response.  2) getting the permissions right to examine remote machines can be tricky.  I can’t offer you any advice on that, you’ll just have to beat your head against it until it works.  :)

Good Luck!

Powered by Mango Blog. Initial Template Design and Icons by N.Design Studio, modified by Michael Cummins.
RSS Feeds