Best Practices for Installing Microsoft Lync CU

Howdy,

this is a quick step by step guide on best practices for installing CU on Microsoft Lync Server

Updated: 20-10-2014

Check for Pending Restarts

Event Viewer

  1. Event ID 1029 will be logged in Application Event if a restart is required

Check for it by using the command line

  • $eventID1029 = get-eventlog -log application |where {$_.instanceID -eq “1029”}
  • $eventID1029

Check for the first column for date and time for the last required reboot

  1. Check when was the last time you rebooted your machine using
  • $lastboot = Get-WmiObject -Class Win32_OperatingSystem
  • write-host “Last Reboot was in :`t” $lastboot.ConvertToDateTime($lastboot.LastBootUpTime)

Simple compare between the date of last required reboot and the latest reboot will give you an idea about what you need to do.

Download the CU

You can obtain the latest updates for Lync 2010 from here

Prepare for Installing CU

Users Activities
  • Make sure no users are using Lync or making calls so you don’t disconnect an important session and get in trouble 😛
  • You can do that using PowerShell
  • Get-CSWindowsServices

cswindowsservice

  • Check the last column (Activitylevel) for active session on any of the Lync services.
Drain Lync Server
  • Lync Server draining only allows calls that are currently active to stay up and running until they terminate. This does not apply for other areas in the Lync client.
  • This is done by using
  • stop-cswindowsservice –graceful
  • After finishing patching the server , services starts automatically unless something happened that rebooted the server before finishing the patching then you have to go to the Services mmc and disable all Lync services till you finish the patching
Stop the World Wide Web service
  • This is done easy by using the following command line
  • Net stop w3svc

stopping w3svc

Installing the Patch

  • Close all open management shell console or control panels opened in the server
  • Double click on the “LyncServerUpdateInstaller.exe” you downloaded previously

  • Click on Install updates
  • These steps must be repeated on all your Lync Server Roles installed in your Lync Environment (Edge, director, mediation, archiving, monitoring…etc.)

Updating SQL

This part where most of the Administrators forget (I used to be one of them), you must not forget updating the SQL databases, which is an easy step because we only use PowerShell

  • Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <EEBE.Fqdn> -UseDefaultSqlPaths

If you don’t know your SQLFQDN (you should do something about that) but you can use the following command line to get it fast

  • Get-CSService -UserDatabase

How to know that the SQL instance been updated successfully

  • Log into the backend server (in case of Lync Enterprise Edition) , or to the SQL express (in case Lync Standard Edition)
  • Connect to the RTC instance
  • Expand RTC Database
  • Locate dbo.DbConfigINT
  • Check the first 1000 rows
  • Check the DB Version Upgrade for the correct number as mention in the KB .

Post patching Checks

After you are done with patching the system it’s time to check if everything working fine

Check Lync Services

This is done using the same PowerShell command

we used before making sure that the status is “Running”

  • get-cswindowsservice
Start the World Wide Web services

Using the following command line start the world wide web services if it’s not started automatically after reboot.

  • Net start w3svc
Verify Client Connectivity

Perform the following tests from a client perspective and validate operation

  • Automatic Sign In
  • Name resolution from address book
  • Peer To Peer IM
  • Peer To Peer Audio Call
  • Peer To Peer Video Call
  • Web Conference (Whiteboard / Sharing / PPT)
  • Group IM
  • PSTN Breakout (if Enterprise Voice is Enabled)
  • Inbound PSTN (if Enterprise Voice is Enabled)
  • External User Access

With this your Updated your Lync environment.

Advertisements

Author: Lyncdude

A Senior Microsoft Unified Communications Consultant with more than 9 years of experience in Microsoft Exchange and Microsoft Lync Server / Skype for Business. Egyptian guy lives and works in Frankfurt - Germany. Worked Closely with Microsoft Dubai for 3 years designing , building and supporting Exchange and Lync Infrastructures. A Microsoft Certified ITP in Lync, Exchange and also attended Microsoft Partner Primer Filed Support Engineer T1 Training for Microsoft Lync 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s