Change Lync Server Scheduled Maintenance time

In this post we will see how to change Lync server scheduled maintenance time. When I deployed Lync 2010 setup in one of the organization, the users in that organization reported that the Lync client gets disconnected for a while and gets connected back.

During the investigation of this issue, I found that the Lync client gets disconnected at specific time. As a Lync admin you would first check whether the front end server services are running fine, then the back end server is working fine.

Note that in my case both the servers were working fine, the next thing I checked was the event viewer on the front end server. To my surprise there were two events which explained about the Lync server scheduled maintenance issue.

This issue can take place under the following circumstances:

  • Lync users are experiencing issues with their presence information, meeting management or participating in conferences.
  • Lync Server maintenance is scheduled to run during business hours.

When you check the event properties of event ID 30947, it shows that the maintenance task was executed successfully and it is executed once a day.

Change Lync Server Scheduled Maintenance time

When you check the event properties of the event ID 30948, it shows that the maintenance task was executed successfully and it is executed once a day. Note that the background task that runs are different for the both the events.

Change Lync Server Scheduled Maintenance time

Lync Server maintenance is scheduled to run while the Lync Server environment is operating at expected user capacity. This can cause contention with the Lync user experience.

To get the information about the Lync Server Scheduled Maintenance time, login to the Lync front end server and launch the Lync Server Management Shell.

From the Lync Server Management shell execute the Get-CsUserServicesConfiguration PowerShell cmdlet as per the example listed below:

Get-CsUserServicesConfiguration -Identity site:sitename

where sitename is the name of the Lync Site.

Or you can just use the command

Get-CsUserServicesConfiguration

Change Lync Server Scheduled Maintenance time

Please note that to run this command the user account that you have logged in with must be a member of RTCUniversalUserAdmins or RTCUniversalServerAdmins security groups.

If you get any permission error then check whether the account has enough permissions to execute this command.

To update the Lync Server maintenance schedule settings use the Set-CsUserServicesConfiguration PowerShell cmdlet with the MaintenanceTimeOfDay parameter.

From the Lync Server Management shell execute the Set-CsUserServicesConfiguration PowerShell cmdlet as per the example listed below:

Set-CsUserServicesConfiguration -Identity site:sitename -MaintenanceTimeOfDay "14:00"

Change Lync Server Scheduled Maintenance time

Note that the MaintenanceTimeOfDay value must be entered in 24 hours clock time format.

Change Lync Server Scheduled Maintenance time

One Comment

  1. Excellent post. The explanation is very clear.

Leave a Reply

Your email address will not be published. Required fields are marked *