Solved

VBScript to know the status of the windows service

Posted on 2012-12-30
2
636 Views
Last Modified: 2013-01-30
Hello Team,

I need a VBscript which can monitor the status of the specific windows service, like IISADMIN & only when service is get in stopped state send out a notification email to speicific DL.

Thanks,
Biplab
0
Comment
Question by:biplabmukh
[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

Expert Comment

by:Julian123
ID: 38731430
Yes, you can definatley check the service status with vbscript. Here's a tutorial on how to do it:
http://www.windowsitpro.com/article/vbscript/check-service-status-on-local-or-remote-servers

and one other for good measure:
http://themonitoringguy.com/scripts-code/monitoring-windows-services-vbscript/
.

To send email, I frequently use blat.exe invoked from the script:
http://www.blat.net/

Thanks!
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 38738934
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

734 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