Search or scan Subnet for Process

I would like to know if anyone has any ideas for what I am trying to do:

I would like to: scan an entire subnet for a specific process, once I compile a list, I will remotely kill that process from my desk one at a time, unless anyone has another idea of how I can do the scan, then initiate a kill?
for example, outlook.exe - scanning for all pc's running outlook.exe. if no ideas on doing a global kill, no prob, the app Im looking to kill should be a short list of users so I can manually kill using dameware or something.

Thanks in advance!

Who is Participating?
Gary DewrellConnect With a Mentor Senior Network AdministratorCommented:
You should be able to write a vbscript to do that. Not one of my strong skills but a quick search turned this up that I think we get you going in the right direction.
johnb6767Connect With a Mentor Commented:
PSExec can do this, with a simple batch file.
psexec @c:\PCNames.txt -c "findfile.bat"
PCNames.txt is a listing of PCNames, or IP Addresses
FindFile.bat is a simple script to detect an executable, and kill it....
Both these files go in the same directory you launch PSEXEC from, and ulaunch it from a useraccount with admin rights on teh targets....

@echo off 
REM Change notepad.exe to the processname you want to search and destroy....
set app=notepad.exe
tasklist /svc | find /i "%app%" >nul
if not %errorlevel%==0 goto none
taskkill /f /im %app% >nul
echo %app% closed on %computername%
goto end
echo %app% not running on %computername%

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.