WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Find and List Processes on Remote Machines

Keywords: 	 Find and List Processes on Remote Machines

Question:

Is there a way to list the current running process on a remote Windows NT machine? If would like to know if someone is running an app in a remote WNT machine.

Something like the resource kit util TLIST.EXE but for a remote machine.

In the Resource Kit is a utility called RKILL.EXE and it works. But I would like to find a similar function in WinBatch, maybe with the tListProc() of the Process Extender but I don't know how to list remote process with this extender.

The RKILL.EXE utility works great for this propose but I would like to implement this utility in WinBatch.

The requiriments for this util to work is a Service Running the RKILLSRV.EXE in the remote PC.

The syntax is:

	rkill /view \\%ComputerName%
It list the current processes on the remote NT machine. That's what I want....Maybe an Extender to do this similar job...in WinBatch.

Answer:

Sound like a job for WMI:

List Processes on a Remote Computer http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/WMI+List~Processes~on~a~Remote~Computer.txt

And

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/WMI+Remote~Process~UDFs.txt

Or you could (maybe) write a script, then using the AT command (or the SOON command in the NT resource kit) schedule the script to run on the remote machine and then somehow have it report back to you if it found the application running or not.

Until you can do it in Winbatch, use Winbatch to run RKILL.EXE...

	RunWait("cmd.exe","/c rkill /view \\%ComputerName% >c:\test.txt")
	fs=Filesize("c:\test.txt")
	bb=BinaryAlloc(fs)
	BinaryRead(bb,"c:\test.txt")
	data=BinaryPeekStr(bb,0,fs)
	BinaryFree(bb)
	
	Message("Data", data)
Or, take pslist.exe from www.sysinternals.com. There's also a pskill.exe
Article ID:   W14629
Filename:   Finding and Listing Processes on Remote.txt
File Created: 2014:07:18:09:51:38
Last Updated: 2014:07:18:09:51:38