I used this script to migrate OCS 2007 R2 users to Lync 2010. On the contract I was working we had 6000 users to migrate across EMEA. Users were split into OUs for their Country, so we did this each night country by country.
Import-Module Lync Get-CSUser -OU "OU=UK,DC=domain,DC=local" | %{ $User = $_ Try { Move-CsLegacyUser -Target "lync-pool-name" -EA STOP } Catch{ Echo $User $_.exception.Message } } | Out-File C:\Lynclog.txt
![Share on Facebook Facebook](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/facebook.png)
![Share on Twitter twitter](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/twitter.png)
![Share on Google+ google_plus](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/google_plus.png)
![Share on Linkedin linkedin](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/linkedin.png)
![feather](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/icon.png)