Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VBScript to know the status of the windows service

Posted on 2012-12-30
2
Medium Priority
?
641 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 2000 total points
ID: 38738934
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

722 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