Office 365 – Day to Day Migration Commands

Connect to Remote Powershell

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Create a new move request

(with an existing remote powershell open)

$OPCred = Get-Credential ### use CORP\user.name.1

New-MoveRequest -Remote -RemoteHostName mrs.onpremdomain.com -RemoteCredential $OPCred -TargetDeliveryDomain tenant.onmicrosoft.com -SuspendWhenReadyToComplete -Identity [email protected] -BadItemLimit 5 -WhatIf

IF this proceeds, re-run the new move request cmdlet without -WhatIf to queue an SWRC.

Create a new migration batch

https://technet.microsoft.com/en-us/library/jj219166(v=exchg.150).aspx

(with an existing remote powershell open)

New-MigrationBatch -name “Batch of Users” -SourceEndpoint mrs.onpremdomain.com -TargetDeliveryDomain tenant.onmicrosoft.com -BadItemLimit 5 -CSVData ([System.IO.File]::ReadAllBytes(“C:\Path\To\UserList.csv”))

CSV file should have a single column, named EmailAddress, and should contain each user’s primary SMTP address, one per line

Cutover a single mailbox

The mailbox should have an existing move request to do this, and in the AutoSuspended state.

get-moverequest <upn/username> | get-moverequeststatistics

If everything is okay:

Resume-moverequest <upn/username>

0 0 votes
Article Rating

Posted

in

by

Tags:

Subscribe
Notify of
guest

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

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x