Thursday, September 19, 2013

Find a running process via command line

One Server
tasklist /fi "IMAGENAME eq besclientui.exe"

Multiple Servers
List servers in a file named C:\servers.txt

for /f %x in (c:\servers.txt) do tasklist /s %x /fi "IMAGENAME eq besclientui.exe"