Tuesday, April 3, 2012

Three Ways to Determine What Version of Lync Server Components are Installed

Microsoft releases updates to Lync components periodically and only updates the version level of the components that actually get the update.  Because of this, various components of your Lync infrastructure will be running at different versions.  To help with keeping the components at the latest versions, Microsoft has released a single tool to perform updates to your Lync environment.  If you download and run the LyncServerUpdateInstaller.exe, this will check your Lync server and install the updated components that are needed.  Note, that you will need to periodically download the latest version of the installer as the download doesn’t actively check for updates.

So how do we determine the exact versions of the Lync components that we are running?  There are basically three different ways:

  1. Powershell
  2. Run the LyncServerUpdateInstaller.exe tool
  3. Check Windows “Programs and Features”

Powershell

There isn’t a great native one-liner within Lync to gather this information.  You would think running Get-CsServerVersion would return this, but it only returns the base version level:

Lync Version - Get-CsServerVersion

Premal Gandhi blogged a while back about a powershell command that can be used to find this information by using WMI to query the different Lync components.  A commenter to the post modified the original command that I am using below.  The versions can be found by running:

Get-WmiObject –query ‘select * from win32_product’ | where {$_.name –like “Microsoft Lync Server*”} | ft Name, Version –AutoSize

Lync Version - PS Table

This will list all components associated with Lync Server, even the tools installed like the Resource Kit and Best Practices Analyzer.

Run the LyncServerUpdateInstaller.exe

Why not use the tool itself to see what components and versions are installed on a server?  When running the LyncServerUpdateInstaller.exe, it will list what versions are installed and what versions need to be updated.  Sure, this tool can be used to actually update the components, but can also be used just to see what versions are installed.

Lync Version - installer - markup

Check Windows “Programs and Features”

You can also see what versions of Lync components are installed by opening “Programs and Features” within Windows.  By scrolling down to the “Microsoft Lync Server 2010” section you can view the version installed.

Lync Version - Programs and Features - markup

Hopefully this helps you get some clarification on what exact versions of Lync components are installed in your environment.

5 comments:

  1. Oooh - I love the Get-WmiObject method! Plus, you can specify a computer name and query remote machines.

    Get-WmiObject –query ‘select * from win32_product’ -ComputerName [computer name] | where {$_.name –like “Microsoft Lync Server*”} | ft Name, Version –AutoSize

    Thanks, Tim!

    ReplyDelete
  2. Tim:
    Wealth of information.Always appreciated. My new role is a LYNC (primary POC) and an Exchange 2010 Secondary.

    Demetrios

    ReplyDelete
  3. Is there a way of detecting the installed LYNC edition as well? I was unable to distinguish Standard, Enterprise and Plus by eiter Add-Remove Programs, Registry Entries, get-service results or Lync specific powershell commandlets.
    By any chance ... ???

    ReplyDelete
  4. Hello. I wrote modified Powershell script at http://vmind.ru/2012/12/10/inventarizaciya-lync-server-2010-v-organizacii/#more-3932

    ReplyDelete
  5. Howdy! Were you able to execute all the settings of this portal all by yourself or you got professional help?

    ReplyDelete