Group Policy Configuration May Break Presence in Lync

Today, I feel like Bill Murray in the movie Groundhog Day.  While working with a customer on a Lync pilot, I ran into an issue where Users on the Lync Pool could not see Presence for Users on any other Pool.  The user would see “Presence Unknown” for all Contacts on Pools other than their own as shown below:

This was a little bit different than the last time I saw the issue. This time the Users couldn’t see Presence for existing Contacts.  This only impacted Users on other Pools though, not Users who were homed on the same Pool.

After a quick email exchange the customer removed the policy “Configure SIP compression mode” that had been set to “Based on ping round-trip time” as shown below:

After the policy was removed users could see presence for all contacts again:

I have reported this issue to Microsoft and hopefully the KB published last time will be updated to include Lync.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Logging on a Lync Enterprise Pool

Building a Lync Enterprise Pool allows you to protect your users and services in the event of hardware or software failure on one (or more) servers in your pool.  While this is great for redundancy, it can make troubleshooting a particular user error a little more complicated.  For example, if you have eight servers in your pool, logging on to each one can create a lot of additional work just to troubleshoot a problem; especially if it is just for
one user.

As an example, at a recent customer deployment, Federation wasn’t working for users on a new Lync Pool. This was a large and rather complex environment that was still in co-existence mode with OCS R2 and I didn’t want to have to dig through a bunch of logs.  But have no fear, PowerShell came to the rescue!

The following command will tell me to which server(s) my Lync client will connect, and in which order (the command should be all on one line)

Get-CsUserPoolInfo –Identity “user” | Select-Object –ExpandProperty PrimaryPoolMachinesInPreferredOrder

Here is a sample output from my lab:

In the example above, the user will first connect to “1:1-2” which is EE2.contoso.local.  If for any reason that server is unavailable, the next server tried will be ee1.contoso.local.  If the user’s home server is up and running, their Lync client will connect to it.  This allows the administrator to run Logger just on that server for troubleshooting purposes.  This will make your job a little bit easier.

To put this to test, we’ll go through the process.  My lab has a DNS load-balanced Enterprise Edition Pool with servers EE1.contoso.local and EE2.contoso.local.  The SIP Domain is and I have 2 DNS A records for my pool as indicated below:

For my first sign-in I have manually configured my client to
use “” as its logon server.

I’ve also enabled logging so we can examine the results in Snooper.  By default the logs can be found in %userprofile%\tracing and will be named “Communicator-uccapi-0.uccapilog”.  This file can be opened with Snooper.  Snooper is available from the Lync Resource Kit available here.

Now let’s break down the SIP traffic.  First we see our initial Register.  Notice that
the client attempts to talk to (EE1)

After the initial Register you will see three “401 Unauthorized” messages.  This is normal
as the client has not authenticated yet.  After the three “401 Unauthorized” messages, you will see a new Register attempt.  This time with an authentication type set.

After the Lync clients has authenticated to EE1, we immediately see a “301 Redirect Request to Home Server”.  This tells our client that it should connect to EE2.contoso.local (the preferred server) since it is online and servicing clients.  We can tell EE2 is our
preferred server by the “q=0.7” section at the end of the first “Contact” line.

In the screen shot above we also see a second “Contact” entry with “q=0.3”.  This tells our
client its Backup Registrar is “se.contoso.local”.  The Backup Registrar can be a Lync Standard Pool or an Enterprise Pool in a backup datacenter.

Now that our client knows which server it should talk to, we attempt to register to the new server. As in the previous case, the client will receive three “401 Unauthorized” errors before it successfully registers using TLS authentication.

If for any reason our preferred server is not available, we will attempt to connect to all other entries listed in the order shown in the first screen capture above.  If our pool
is down, our client will connect to the backup pool after the failover interval has elapsed.

Now that we are sure which server we are connecting to, we can log in and run the logging tool to troubleshoot any issues:

I’ve chosen to log the SIP Stack as you can see in the screen shot below:

After I’ve started and stopped logging, I can click the “Analyze Log Files” button and as long as snooper is installed, I’ll be able to jump right into troubleshooting from the server.

Some great reference material is available on what I’ve covered in the following links. I highly recommend these articles:

Another Reason to Include a Director in Your Lync Server 2010 Deployment

Haiku #120 – Lync Powershell

DNS Load Balancing in Lync Server 2010

Get-CsUserPoolInfo – Technet

Posted in Uncategorized | Tagged , , , , , , | 5 Comments

Introducing the OCSGuy_QuickUI

This is a utility I wrote to provide a GUI for common power shell tasks.  This is a version 1 utility and I do expect to update it semi-frequently.  The entire utility is included in a single .ps1 file and does not require an install; it should be run from a Lync server, though.   Please feel free to download the utility, unzip it, take a quick look at the very short readme and give it a try.  If you’d like to see a new feature or find a bug, please feel free to comment below.  Please be patient as I will be adding features and fixing bugs in my spare time.

The current features include:

Install Lync 2010 Pre-requisites for Server 2008 R2

Export Topology File for Edge Installation

Upload Phone Firmware

Create a Reverse Proxy Certificate Request (Web Services Certificate)

Enable Meeting Join from Legacy Client

Enable Attendee Download Link on the Meeting Entry Page

Enable Lync Federation with Office 365

Enable 720P Video with MSN/Live – (Global Policy Only)

Increase the Number of Distribution Lists Allowed in Contact List – (Global Policy Only)

Download Here

Thanks to a few folks are in order for assisting me with writing this.

Adam Curry

Pat Richard

Nick Nelson

Posted in Uncategorized, Utilities | Tagged , , , , , , , , , , , | 7 Comments

A Few Words on Federation

Recently, while creating some documentation for an install it struck me that federation may be a bit confusing if you aren’t working with Lync on a daily basis.  With that in mind I’m writing this article in hopes of clearing up some common questions I hear around federation during deployments or see on the forums.

First of all, if you’re not sure what all of this federation stuff is about, there is a good overview here, but basically federation is the process by which we connect our Lync/OCS/LCS environments to other Lync/OCS/LCS environments, such as our partner companies.  This connection allows users to easily communicate with users in other companies utilizing all the same modalities they have with users in their own environment (IM, Audio, Video, Desktop Share, etc….).

In Lync 2010 there are 3 types of federation: Dynamic, Enhanced and Direct.  Picking which one is right for your partner companies is where it starts to get a little tricky.  I won’t go into great detail about how to configure your edge server for federation in this article, but you can reference this article if you’d like more information there.  Instead, I’d like to focus on choosing one of the 3 types of federation and the benefits of each.

We’ll start with dynamic federation.

Dynamic federation is a method where a partner company’s edge server is discovered by looking up an SRV record (  Dynamic federation is perfect for an environment where users may need to add contacts from other companies quickly and without administrative intervention.  The firewall will have to allow inbound connections to the access edge server on port 5061 from any potential partners, but for most companies who use open federation, they allow traffic from everywhere on this port to prevent needing administrative assistance.

There are a couple of limitations on Dynamic federation, first when a partner is discovered via dynamic federation; limitations are put on how many SIP messages (20) can be received per second by that partner.  Also, there is a limit of 1000 contacts per federated contact.  Last, but not least, if you discover a partner via dynamic federation, the A record and certificate for their federated access edge must match the sip domain of the user.   It is very common to see 14607 warnings in the event viewer of your edge server if you are discovering partners via dynamic federation.  This is expected behavior but can be modified by using one of the 2 other types of federation.  Here is a look at that error:

If you would like to cross the 20 SIP messages per second mark, the 1000 user per partner mark, or be a little pickier about whom you federate with you can use Enhanced Federation.

Enhanced Federation requires that you add your partners SIP domain to the “Federated Domains” list in the Lync control panel.  However, you do not need to add the FQDN of their access edge server.  Enhanced federation is not limited like dynamic federation so you will no longer have a cap on the number of messages or users.  However, if you configure a partner via enhanced federation, the A record and certificate for their federated access edge still must match the sip domain of the user.  Here’s a screen shot of how to configure enhanced federation

Last but not least we come to Direct Federation.

Direct Federation just like enhanced federation, has no limit on the number of messages or users, but there is one big difference.  If your partner company has an access edge server with an FQDN that doesn’t match the SIP domain, you can still federate.  You will just need to put the FQDN of the access edge server and the domain name in like in the screen shot below.

The nice thing about Lync, is you can still utilize all 3 options, for example at my company we have enabled dynamic federation, but still utilize enhanced and direct federation for partners once we start seeing the 14607 errors start showing up.

That covers how you configure the different types of federation in a Lync environment; I did not however, cover federation with the Office 365 cloud.  Federation with the Office 365 cloud is done via the Hosting Provider tab and works much like direct federation.   For more information on that have a look at Tommy’s article here.  There may also be additional consideration around firewall rules based on your company’s decision on which way to configure federated partners.

Hope this helps!

Posted in Uncategorized | Tagged , , , , , | 38 Comments

Lync Client Conversation Translator

Today we have a guest post by one of my colleges in the Unified Communications practice at PCMS, Adam Curry.  Hope you enjoy!

Here is a really intriguing and interesting extension of the Lync 2010 client found in the Lync SDK called the “Conversation Translator.”  By using Silverlight and Bing’s translator feature, you can have a real-time conversation with someone in a completely different language.

The Good Stuff

  • It’s free!
  • You are able to have conversations with anyone in literally any language.
  • It’s great for international companies.
  • It can easily be pushed out to all client machines by using MS System Center.

The Bad Stuff

  • It’s still a translator.  The translations may not always be 100% correct due to regional slang from certain countries.
  • You have to have the “Conversation Translator” open prior to receiving the foreign text.

Thankfully, you don’t need to grab the Lync SDK and compile the Conversation Translator as the heavy lifting has already been done.

How to Install

Create the registry key by opening a new Text file and copying the following:

***(code block the reg)

Windows Registry Editor Version 5.00


“Name”=”Conversation Translator”






[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\input]


Save the Text file and change the extension to .reg file.  If you currently have the Lync 2010 client open, close it.  Once closed, double click on the .reg file to import the keys into the registry. Now, you  go ahead and start the Lync 2010 client and you’re ready to use the extension.

How to Use

The basic premise of the extension is to automatically translate incoming IMs and preview and send outgoing translations to the recipient.  Think of the extension as “injecting” itself into the conversation, saving you the necessary steps of copying and pasting from a translation website.

Start the Lync Client.  If you go over to the side menu, you will see a “Conversation Translator.”

Select “Conversation Translator” to open the extended IM window.

Now you have an extended IM window that will inject itself into the IM conversation.  Note, it will not translate any IMs prior to opening the “Conversation Translator.”  Another important step is setting your language and the recipient’s language.  Below, shows some of the different languages that you can select.

Example Time

The following is a pretend conversation with a person located in Germany.  Kevin is having a problem with his mailbox that’s located in Munich.  He wants to get a hold of I.T. that’s located in the U.S. Instead of using a translator within the office, he communicates his problems through Lync 2010 to Adam (that’s me!).

We get Kevin’s initial response that he is having a mailbox issue.  I have already turned on the Conversation Translator, so I was able to translate his first IM.  As we can see, we can read the original German on the left and the translated English on the right.

As I type, we can hit the button Translate to complete the translation into the other language.

After translating the language hit the Send button to send the IM to Kevin.

The extension leaves the pre-translated English into the right pane, but only sends the German translation to Kevin.  After some more back and forth with Kevin, we were able to resolve the issue.

For Kevin, this is how his Lync 2010 client looks like after our IM communication:

To Wrap Up

This is such an extremely useful extension that it’s odd to me why it would not be built-in to the Lync 2010 client.  Albeit, the translations are sometimes not 100% correct, the efficiency to communicate with people who speak a foreign language is remarkable.  Many thanks to Kevin for the guest post.


Posted in Uncategorized | Tagged , , | 9 Comments

Lync CU1 Released

I haven’t seen these all in one place yet so I figured I’d post them.  Happy patching!

Product KB
Lync 2010 (64bit) 2467763
Lync 2010 (32bit) 2467763
Lync Server 2010 2493736
Lync 2010 Phone Edition (Tanjay) 2493722
Lync 2010 Phone Edition (Aries-Aastra) 2493724
Lync 2010 Phone Edition (Aries-Polycom) 2493723
Lync 2010 Attendee (Admin Install) 2467762
Lync 2010 Attendee (User mode install) 2467761
Lync 2010 Attendant (32 & 64 bit are a combined patch) 2467760
Lync 2010 Group Chat Client 2467765
Lync 2010 Group Chat Admin 2467764
Posted in Uncategorized | Tagged , , , | 4 Comments

Pending File Rename Registry Key Causes Lync/SQL Install to Halt

I’ve run into this one a few times, so I figured I’d share my experience.  During the “Prepare First Standard Edition Wizard” the installer says “The server must be restarted before installation can continue”.   I’ve also seen this same error when doing SQL installs, such as the backend database.

After a reboot, the installation still halts with the same error.  To correct the behavior we have to hop into our registry editor and navigate to: HKLM>System>ControlSet001>Control>Session Manager

Under the “PendingFileRename” entry you will see text like what is in the box below.

This tells the system that the file in question is pending a rename and causes the SQL install to fail because it checks this entry before proceeding.  If you delete the contents in the “Value data” box and restart the installer (not the machine), the issue will be resolved temporarily and will allow you to continue with the installation.

Posted in Uncategorized | Tagged , , | 2 Comments