i have this check service script but it only seems to check the first service and then stops
it only checks "alerter" and does not go into the For Each loop for the next DHCP or Diskeeper. i know it loops thru because i msg out the arrTemp(i) and see the names, but the inner for each loop doesnt run after the first entry.
Well, first off you are using the wrong name for the DHCP Client. The 'Name' value for that service is 'Dhcp', whereas the DisplayName value for that service is 'DHCP Client'.
You could replace this line:
with this line:
And would get better results.
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers)
"It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
i overlooked that i took the display name rather than the service name. hencing doing so the 2nd for each loop did run it just didn't find a service name called "dhcp client." thanks digital.scream, i used that example line and producing much better results.