CASE WHEN “I need to learn more T-SQL” THEN GoogleTheResult() END
March 13, 2013
3 Things You Must Do At University (or Things You Didn’t Do and Regret)
September 14, 2016

Office 365 – Day to Day Migration Commands

Connect to Remote Powershell

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Create a new move request

(with an existing remote powershell open)

$OPCred = Get-Credential ### use CORP\

New-MoveRequest -Remote -RemoteHostName -RemoteCredential $OPCred -TargetDeliveryDomain -SuspendWhenReadyToComplete -Identity -BadItemLimit 5 -WhatIf

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

Create a new migration batch

(with an existing remote powershell open)

New-MigrationBatch -name “Batch of Users” -SourceEndpoint -TargetDeliveryDomain -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>

Leave a Reply

%d bloggers like this: