Skip to content

Instantly share code, notes, and snippets.

@kazuple
Created June 25, 2018 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuple/fb2e66782561b6743aa9921d9b8ca799 to your computer and use it in GitHub Desktop.
Save kazuple/fb2e66782561b6743aa9921d9b8ca799 to your computer and use it in GitHub Desktop.
SfBServer - Bulk Migrate Users Online
$creds=Get-Credential
$MigrateToSfBOCSV= Import-Csv #CSV Location#
$MigrateToSfBOCSV | % { Move-CsUser -Identity $_.Identity -Target sipfed.online.lync.com -Credential $creds -HostedMigrationOverrideUrl https://<SfB URL Here>.online.lync.com/HostedMigration/hostedmigrationService.svc -Confirm:$False
Write-host "User " $_.Identity " Migrated OK" -ForegroundColor Green
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment