Move-LegacyUserToLync - Move Legacy (Office Communicator) User to Lync

This is a quick and dirty script to be run under the Lync Server Managment Shell. We have a mixed Communicator and Lync environment so I wrote some scripts to help. This moves the Office Communicator user account to Lync.  You need to modify the Lync-FE.MyDomain.com with your Lync Front End server.

PowerShell
Edit|Remove
# Move Legacy (Office Communicator) User to Lync 
# ** Need to update Lync-FE.MyDomain.com to your Full DNS name of your Lync Front End Server ** 
 
Write-Host 
Write-Host "This moves a Legacy (Office Communicator) user to Lync" 
Write-Host 
$User = Read-Host "Enter User Account Name (Ex: John.Doe): " 
 
# Get User Information 
$UserInfo = Get-CsUser -OnOfficeCommunicationServer -identity $User 
 
# Move User to Lync 
Move-CsLegacyUser -Identity $UserInfo.SipAddress -Target "Lync-FE.MyDomain.com" 
 
# Final Words 
Write-Host 
Write-Host "$UserInfo.Display is now on Lync pool $UserInfo.RegistrarPool"   
Write-Host