Check Windows Process

Monday Jan 11th 2010 by DatabaseJournal.com Staff
Share:

This script finds the number of process instances running on a server.



>>Script Language and Platform: VBScript
This script finds the number of process instances running on a server.

Usage:

cscript MonitorTask.vbs "distrib.exe" "2" "c:\taskmonitor.log" "MyServer"


parameters Explained
"distrib.exe" = ProcessName
"2" = Number of Instances that we are looking for
"c:\taskmonitor.log"= Log File Location
"MyServer"= Servername

Result: Type "c:\taskmonitor.log" you will see the following results
: ServerName =MyServer: ProcessName =distrib.exe 
: Number of given instances to monitor is =2 
: Number of running instance 2: Date=11/16/2004 9:06:50 AM
: ServerName =MyServer: ProcessName =notepad.exe 
: Number of given instances to monitor is =2 
: Number of running instance 0: Date=11/16/2004 9:07:17 AM

Author: MAK


Download Script:
monitor_process.vbs_


Disclaimer: We hope that the information on these script pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, or fitness for a particular purpose... Disclaimer Continued


Back to Database Journal Home

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved