I need to write a bat file to check if a service exists on a PC and if
so, check if it's running and, if not, start it. Starting it is the
easy part.
net start albd
Which I could do but if the service doesn't even exist of a client it
displays an error which confuses the users.
Is there a way to query if a service is installed on a client and, if
so, is it running?
I'm trying to do this in a bat file, but other languages would be
acceptable. I'm real rusty on writing bat files.
Thanks
Brian