VBScript to know the status of the windows service

biplabmukh
biplabmukh used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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!
Most Valuable Expert 2012
Top Expert 2014
Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial