Just sharing another script that We have recently written for our Lync enviornment and added to startup of Lync edge servers.
but this can be used with any Lync server.
We have used it on our edge servers as we have seen that after restart some times serivces were not coming up automatically.
As a wrokaround we have used this solution, this can also be used to monitor the Lync services & start it , if found not running.
below is the output that it can send you in email..
Just change the below variables:
$smtphost = "smtp server"
$from = "Lyncserver1Services@lab.com"
$to = "Vikas.email@example.com"
and run the batch file..(download the zip file from below link and extract)