Solved

Search or scan Subnet for Process

Posted on 2009-07-10
2
265 Views
Last Modified: 2013-12-04
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 192.168.0.0/24 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!

0
Comment
Question by:jgreen1280
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Gary Dewrell earned 250 total points
ID: 24825753
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.

http://www.freevbcode.com/ShowCode.asp?ID=4888
0
 
LVL 66

Assisted Solution

by:johnb6767
johnb6767 earned 250 total points
ID: 24826101
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 
setlocal
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
 
:none
echo %app% not running on %computername%
endlocal
exit
 
:end
endlocal
exit

Open in new window

0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question