If I wanted to write a script to detect if a service was running how would I write that. I see all these scripts on how to stop and start. Im just looking at picking a single service and check to see if its running or not. If its not Im going to have it send an email to me letting me know.
Posts: 1924
Score: 16
Joined: 5/15/2003
From: USA
Status: online
I have been working on a tool to help diagnose and fix WSUS issues and here is a function that I created to query a remote service using PsService from Sysinternals.
_____________________________
Mike
For useful Scripting links see the Read Me First stickey!