Solved

VBScript to know the status of the windows service

Posted on 2012-12-30
2
631 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
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 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 …

758 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

17 Experts available now in Live!

Get 1:1 Help Now