Monday, March 31, 2014

PowerShell: Check Lync Services and start if not running


Hi Readers,
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.sukhija@lab.com"
and run the batch file..(download the zip file from below link and extract)
http://gallery.technet.microsoft.com/scriptcenter/Check-Lync-and-start-if-983002b1


Regards
Sukhija Vikas
http://msexchange.me

No comments:

Post a Comment