December 15 2010

Find out how many users are connected in Lync Server 2010

In OCS it was really simple to see how many OCS clients / users were connected to the pool and the version numbers of each client as well as the total number of enabled users.

To get the number of clients connected in Lync 2010, you need to do it via performance counters on the SQL server. Look at the SQLServer:User Settable performance counters for the backend SQL instance and add ‘user counter 1’ – this has the number of currently connected users.

To find the total number of Lync enabled users, use the “Get-CsUser -Filter {Enabled -eq $true} | Measure” Powershell cmdlet.

This seems to be another one of those things that was so easy in OCS but seems so much more difficult in Lync.

I use a maximum of one Google Ad per post to help offset some of my blog hosting costs.


December 10 2010

Enable all users in an OU for Lync with Powershell

I much prefer the old OCS way of enabling users for OCS / Lync, I believe it was much easier, but it looks like we are going to have to get used to using Powershell to do this. An example I have put together to enabling all users in an Organisational Unit for Lync 2010 is:

get-csADuser -OU "OU=Users,OU=Head Office,dc=danovich,dc=com,dc=au" | Enable-CsUser -RegistrarPool -SipAddressType emailaddress

More reading here:


December 9 2010

Add SRV record for Lync to Unix BIND DNS

Recently I need to add the _sipinternaltls SRV record for Lync to a DNS server running BIND on Unix (same process for _sipexternaltls). After reading through this article – – I found that it wasn’t too hard – just needed to add the following line to the db.zonename file: SRV 0 0 5061

In my case I pointed the SRV record to an A record – that had the IP address of the internal Lync pool. I did it this way because otherwise you will get an error on your Lync client stating Lync cannot verify that the server is trusted for your sign-in address. Connect anyway?. More about this error here –

Don’t forget to restart BIND so it reloads your DB file.