@@ -298,8 +298,11 @@ This example creates a migration batch for a local move, where the mailboxes in
298
298
### Example 2
299
299
``` powershell
300
300
$Credentials = Get-Credential
301
+
301
302
$MigrationEndpointSource = New-MigrationEndpoint -ExchangeRemoteMove -Name Forest1Endpoint -Autodiscover -EmailAddress [email protected] -Credentials $Credentials
303
+
302
304
$CrossForestBatch = New-MigrationBatch -Name CrossForestBatch1 -SourceEndpoint $MigrationEndpointSource.Identity -TargetDeliveryDomain forest2.contoso.com -TargetDatabases MBXDB1 -CSVData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\CrossForestBatch1.csv"))
305
+
303
306
Start-MigrationBatch -Identity $CrossForestBatch.Identity
304
307
```
305
308
@@ -308,8 +311,11 @@ This example creates a migration batch for a cross-forest enterprise move, where
308
311
### Example 3
309
312
``` powershell
310
313
$Credentials = Get-Credential
314
+
311
315
$MigrationEndpointOnPrem = New-MigrationEndpoint -ExchangeRemoteMove -Name OnpremEndpoint -Autodiscover -EmailAddress [email protected] -Credentials $Credentials
316
+
312
317
$OnboardingBatch = New-MigrationBatch -Name RemoteOnBoarding1 -SourceEndpoint $MigrationEndpointOnprem.Identity -TargetDeliveryDomain contoso.mail.onmicrosoft.com -CSVData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\RemoteOnBoarding1.csv"))
318
+
313
319
Start-MigrationBatch -Identity $OnboardingBatch.Identity.Name
314
320
```
315
321
@@ -318,8 +324,11 @@ This example creates a migration batch for an onboarding remote move migration f
318
324
### Example 4
319
325
``` powershell
320
326
$Credentials = Get-Credential
327
+
321
328
$MigrationEndpointOnPrem = New-MigrationEndpoint -ExchangeRemoteMove -Name OnpremEndpoint -Autodiscover -EmailAddress [email protected] -Credentials $Credentials
329
+
322
330
$OffboardingBatch = New-MigrationBatch -Name RemoteOffBoarding1 -TargetEndpoint $MigrationEndpointOnprem.Identity -TargetDeliveryDomain onprem.contoso.com -TargetDatabases @(MBXDB01,MBXDB02,MBXDB03) -CSVData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\RemoteOffBoarding1.csv"))
331
+
323
332
Start-MigrationBatch -Identity $OffboardingBatch.Identity
324
333
```
325
334
@@ -328,7 +337,9 @@ This example creates a migration batch for an offboarding remote move migration
328
337
### Example 5
329
338
``` powershell
330
339
$credentials = Get-Credential
340
+
331
341
$SourceEndpoint = New-MigrationEndpoint -ExchangeOutlookAnywhere -Autodiscover -Name SourceEndpoint -EmailAddress [email protected] -Credentials $credentials
342
+
332
343
New-MigrationBatch -Name CutoverBatch -SourceEndpoint $SourceEndpoint.Identity -TimeZone "Pacific Standard Time" -AutoStart
333
344
```
334
345
@@ -337,8 +348,11 @@ This example creates a migration batch for the cutover Exchange migration Cutove
337
348
### Example 6
338
349
``` powershell
339
350
$Credentials = Get-Credential
351
+
340
352
$MigrationEndpoint = New-MigrationEndpoint -ExchangeOutlookAnywhere -Name ContosoEndpoint -Autodiscover -EmailAddress [email protected] -Credentials $Credentials
353
+
341
354
$StagedBatch1 = New-MigrationBatch -Name StagedBatch1 -SourceEndpoint $MigrationEndpoint.Identity -CSVData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\StagedBatch1.csv"))
355
+
342
356
Start-MigrationBatch -Identity $StagedBatch1.Identity
343
357
```
344
358
@@ -356,8 +370,11 @@ This example creates a migration endpoint for the connection settings to the IMA
356
370
### Example 8
357
371
``` powershell
358
372
$Credentials = Get-Credential
373
+
359
374
$MigrationEndpointOnPrem = New-MigrationEndpoint -ExchangeRemoteMove -Name OnpremEndpoint -Autodiscover -EmailAddress [email protected] -Credentials $Credentials
375
+
360
376
$OnboardingBatch = New-MigrationBatch -Name RemoteOnBoarding1 -SourceEndpoint $MigrationEndpointOnprem.Identity -TargetDeliveryDomain contoso.mail.onmicrosoft.com -CSVData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\RemoteOnBoarding1.csv")) -CompleteAfter "09/01/2018 7:00 PM"
377
+
361
378
Start-MigrationBatch -Identity $OnboardingBatch.Identity
362
379
```
363
380
@@ -366,8 +383,11 @@ This example is the same as Example 3, but the CompleteAfter parameter is also u
366
383
### Example 9
367
384
``` powershell
368
385
$Credentials = Get-Credential
386
+
369
387
$MigrationEndpointOnPrem = New-MigrationEndpoint -ExchangeRemoteMove -Name OnpremEndpoint -Autodiscover -EmailAddress [email protected] -Credentials $Credentials
388
+
370
389
$OnboardingBatch = New-MigrationBatch -Name RemoteOnBoarding1 -SourceEndpoint $MigrationEndpointOnprem.Identity -TargetDeliveryDomain contoso.mail.onmicrosoft.com -CSVData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\RemoteOnBoarding1.csv")) -CompleteAfter "09/01/2018 7:00 PM" -TimeZone "Pacific Standard Time"
390
+
371
391
Start-MigrationBatch -Identity $OnboardingBatch.Identity
372
392
```
373
393
@@ -376,9 +396,11 @@ This example is the same as Example 8, but the TimeZone parameter is also used.
376
396
### Example 10
377
397
``` powershell
378
398
$MigrationEndpointGmail = New-MigrationEndpoint -Gmail -ServiceAccountKeyFileData $([System.IO.File]::ReadAllBytes("C:\Users\Administrator\Desktop\gmailonboarding.json")) -EmailAddress [email protected] -Name GmailEndpoint
399
+
379
400
$OnboardingBatch = New-MigrationBatch -SourceEndpoint $MigrationEndpointGmail.Identity -Name GmailBatch1 -CSVData $([System.IO.File]::ReadAll
380
401
Bytes("C:\Users\Administrator\Desktop\gmail.csv")) -TargetDeliveryDomain "o365.contoso.com" -ContentFilter "Received -ge '2019/4/30'" -Inc
381
402
ludeFolders "Payment"
403
+
382
404
Start-MigrationBatch -Identity $OnboardingBatch.Identity
383
405
```
384
406
0 commit comments