Lync – Move On Prem users to Lync Online from CSV

Microsoft detail how to move users from Lync On-Prem to Lync Online and how to bulk move users in an OU or with a particular AD attribute: https://technet.microsoft.com/en-us/library/jj204969%28v=ocs.15%29.aspx?f=255&MSPPError=-2147217396.

If you want to bulk move users to Lync Online from a CSV you can use the PowerShell below:

$creds=Get-Credential
Import-Csv movelyncusers.csv -Header Identity | Foreach-Object {Move-CsUser -Identity $_.identity -Target sipfed.online.lync.com -Credential $creds -HostedMigrationOverrideUrl https://admin1e.online.lync.com/HostedMigration/hostedmigrationService.svc}

movelyncusers.csv should contain a list of the UPNs of the users you wish to move.  No headings are required.

12 Replies to “Lync – Move On Prem users to Lync Online from CSV”

    • The PowerShell is absolutely correct but for each user it prompt to say yes .I am writing A i.e. yes to All but it is again n again prompting after each user moved. Please suggest

  1. The PowerShell is absolutely correct but for each user it prompt to say yes .I am writing A i.e. yes to All but it is again n again prompting after each user moved. Please suggest

  2. i tried the above comment but get the below error “Move Csuser : A parameter cannot be found that matches parameteer name ‘credential’

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.