Doing a migration via the command line is possible, and is documented below, but if you can do it via Exchange Control Panel it is considerably easier.
To migrate you need to create a migration connection string. This is done with Test-MigrationServerAvailability. Once you have this object you can use it in the migration with New-MigrationBatch.
To grant access to one user account to all mailboxes perform the following in Exchange Management Shell:
- Get-Mailbox | Add-MailboxPermission -User domain\user -AccessRights FullAccess
- Start the Windows Powershell
- $cred=Get-Credential tenant_admin@tenant.onmicrosoft.com
- $EOSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/PowerShell/ -Credential $Cred -Authentication Basic -AllowRedirection
- Import-PSSession $EOSession -AllowClobber
- $MigrationSettings = Test-MigrationServerAvailability -Exchange -Credentials (Get-Credential) -ExchangeServer internal-exchange-fqdn -RPCProxyServer external-outlook-anywhere-fqdn
- Enter credentials of account that has FullAccess rights to all mailboxes
- New-MigrationBatch -Exchange -Name unique-name-for-migration -ExchangeConnectionSettings $MigrationSettings.ConnectionSettings -MaxConcurrentMigrations 10 -TimeZone "Pacific Standard Time"
- Start-MigrationBatch
- Get-MigrationBatch OR Get-MigrationStatus
- Complete-Migration
0 comments:
Post a Comment