May 10
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!
Recent Comments