September 5 2011

Tool for pinging multiple hosts

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


I came across a great tool called Ping Them, great for pinging multiple hosts. See for more details.

This is similar to a Powershell script of mine over here – – but this new tool adds a great GUI and some additional functionality.

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


December 30 2010

Scheduled task Powershell script to backup Lync Server 2010 config

I’ve created a simple Powershell script to run daily to backup Lync configuration with the export-csconfiguration command:

cd $env:UserProfile
Import-Module 'C:Program FilesCommon FilesMicrosoft Lync Server 2010ModulesLyncLync.psd1'
$filename = "d:backup{}" -f (Get-Date)
export-csconfiguration -Filename $filename -Force:$True

For example, put the above code into a document called d:backupbackup.ps1 and then create a scheduled task to execute the command on a daily basis:

powershell -command d:Backupbackup.ps1

This can run in the SYSTEM context. Simples!

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.

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: