Solved

Search or scan Subnet for Process

Posted on 2009-07-10
2
259 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
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

786 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