I need to know the status of a service at the end of my batch script which restarts services using \"net stop thingie\" and \"net start thingie\".
In my most favorite id
Using pstools - in particular psservice and "query" - for example:
psservice query "serviceName"