Solved

Search or scan Subnet for Process

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

Suggested Solutions

Title # Comments Views Activity
Ransome Ware Question 10 138
Windows Master Password 11 53
Server 2008-R2 lost password 19 96
Sweet32 Vulnerability in Microsoft IIS7.5 6 31
OfficeMate Freezes on login or does not load after login credentials are input.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now