If Lync is running and the account is not signed in, then this script signs the account in. Use this applescript in a cronjob or Automator/iCal arrangement to keep your account signed in to Microsoft Lync.