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
Show all

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 user.name@fqdn.com -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>

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz

Redirecting shortly

%d bloggers like this: