Note: Alex Heyne is not visible but he's there...
- The migrated mailbox replaces the corresponding mail user in Office 365.
- A mail user replaces the migrated mailbox in the on-premises Exchange environment.
We then enter the target domain, in my case: mitservnet.mail.onmicrosoft.com.
Note: mail.onmicrosoft.com is common to all Office 365 / Exchange Online clients.
We have a summary of the operation to be executed:
The wizard is working...
And then completes:
PS C:\> $TenantCreds = Get-Credential
Note: here we would be prompted to enter our credentials which are stored in the variable.
We then enter this command:
PS C:\> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $TenantCreds -Authentication Basic -AllowRedirection
We will see a message like this (it is strictly informational):
WARNING: Your connection has been redirected to the following URI:
We import the session:
PS C:\> Import-PSSession $Session
PS C:\> $RemoteCredential = Get-Credential
Note: here we supply the credentials when prompted.
PS C:\> New-MoveRequest -id "email@example.com" -Remote -RemoteHostName "mail.mitserv.net" -TargetDeliveryDomain mitservnet.mail.onmicrosoft.com -RemoteCredential $RemoteCredential
You can't use the domain because it's not an accepted domain for your organization [...].