Add-MW_MailboxMigration

Syntax

Add-MW_MailboxMigration -Ticket <Ticket> -EndpointUrl <string> -MailboxId <guid> -ConnectorId <guid> -UserId <guid> [-Id <guid>] [-CreateDate <datetime>] [-UpdateDate <datetime>] [-ServerId <guid>] [-ItemEndDate <datetime>] [-ItemStartDate <datetime>] [-UseServerAffinity <bool>] [-Version <string>] [-Tags <string>] [-StartDate <datetime>] [-StartRequestedDate <datetime>] [-CompleteDate <datetime>] [-FailureMessage <string>] [-FailureStack <string>] [-IpAddress <string>] [-MaximumDataTransfer <long>] [-MaximumItemsPerFolder <int>] [-Priority <int>] [-RepairStartDate <datetime>] [-RepairEndDate <datetime>] [-Status <MailboxQueueStatus>] [-Type <MailboxQueueTypes>] [-LicensePackId <guid>] [-MasterLicensePackId <guid>] [-ConsumedLicense <bool>] [-Restriction <string>] [-MigrationServerIp <string>] [-ItemTypes <MailboxItemTypes>] [-ExtendedItemTypes <string>] [-AccessToken <string>] [-ProductSkuId <guid>] [-AssignmentCount <int>] [-AccessLevel <string>] [<CommonParameters>]

Add-MW_MailboxMigration -Ticket <Ticket> -MailboxId <guid> -ConnectorId <guid> -UserId <guid> [-Environment <string>] [-Id <guid>] [-CreateDate <datetime>] [-UpdateDate <datetime>] [-ServerId <guid>] [-ItemEndDate <datetime>] [-ItemStartDate <datetime>] [-UseServerAffinity <bool>] [-Version <string>] [-Tags <string>] [-StartDate <datetime>] [-StartRequestedDate <datetime>] [-CompleteDate <datetime>] [-FailureMessage <string>] [-FailureStack <string>] [-IpAddress <string>] [-MaximumDataTransfer <long>] [-MaximumItemsPerFolder <int>] [-Priority <int>] [-RepairStartDate <datetime>] [-RepairEndDate <datetime>] [-Status <MailboxQueueStatus>] [-Type <MailboxQueueTypes>] [-LicensePackId <guid>] [-MasterLicensePackId <guid>] [-ConsumedLicense <bool>] [-Restriction <string>] [-MigrationServerIp <string>] [-ItemTypes <MailboxItemTypes>] [-ExtendedItemTypes <string>] [-AccessToken <string>] [-ProductSkuId <guid>] [-AssignmentCount <int>] [-AccessLevel <string>] [<CommonParameters>]

Detailed Description

Add-MW_MailboxMigration adds a(an) MW_MailboxMigration. Represents a mailbox migration. A mailbox migration represents the migration of an item (one migration pass only).

Parameters

Total Parameters: 50

ConnectorId

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

EndpointUrl

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

MailboxId

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Ticket

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

UserId

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

AccessLevel

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

AccessToken

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

AssignmentCount

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

CompleteDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ConsumedLicense

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

CreateDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Environment

Available values are listed below.

Value Description
BT Represents BT
Beta Represents Beta
Develop Represents Develop
Release Represents Release
Test Represents Test
China Represents China
Germany Represents Germany
Alpha Represents Alpha
Today Represents Today
Sandbox-02 Represents Sandbox-02
Sandbox-03 Represents Sandbox-03

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ExtendedItemTypes

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

FailureMessage

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

FailureStack

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Id

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

IpAddress

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ItemEndDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ItemStartDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ItemTypes

Available values are listed below.

Value Description
None None.
Contact Contact.
Calendar Calendar.
Mail Mail.
Journal Journal.
Note Note.
Task Task.
Folder Folder.
Rule Rule.
Conversation Conversation.
ContactGroup Contact group.
DocumentFile Document File.
Song Song.
Permissions Permissions.
ArchiveSlice Archive slices.
ArchiveFileMetadata Archive file metadata.
ArchiveFile Archive file.
ArchiveEmailAddress Archive email addresses.
ArchiveEmail Archive email.
MassStorageFile Archive file.
SecurityGroup Security Group.
PermissionLevels Permission Levels.
DocumentLibraryPermissions Document Library Permissions.
List Lists.
EAMExtractionItem EAM Extraction Item.
DatabaseItem Database item.
Shortcut Shortcut file object.
Structure Structure/scaffolding/skeleton for the migration.
Metadata Metadata.
Version Version.
OneNoteTab OneNote tab migration for Microsoft Teams.
PrivateChat Private chat migration.
All All flags.
NewItemTypeIdentifier This is considered as a decider bit to move towards using new itemtypes (Which shall be implemented soon). Any more fields beyond this should not be used as it will result in undesirable effects. Contact Varadarajan Ganesan for more info.

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

LicensePackId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

MasterLicensePackId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

MaximumDataTransfer

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

MaximumItemsPerFolder

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

MigrationServerIp

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Priority

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ProductSkuId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

RepairEndDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

RepairStartDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Restriction

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ServerId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

StartDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

StartRequestedDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Status

Available values are listed below.

Value Description
NotMigrated Not migrated.
Submitted Submitted (submitted for migration).
WaitingForEndUser Waiting for end user.
Queued Queued (assigned by the scheduler to a migration server).
Processing Processing.
Completed Completed.
Failed Failed.
Stopping Stopping.
Stopped Stopped.
MaximumTransferReached Max transfer reached.
Draining Draining.
Drained Drained.
CompletedError Completed with Error.
CompletedWarning Completed with Warning.

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Tags

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Type

Available values are listed below.

Value Description
None None.
Trial Trial migration.
Full Full migration.
Repair Repair.
Verification Verification.
SizeAssessment Size assessment.
CleanUp Clean Up.

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

UpdateDate

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

UseServerAffinity

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Version

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Outputs

System.Object

Notes

Examples

-------------------------- Example 1 -------------------------

# Submit a mailbox migration

Add-MW_MailboxMigration -Ticket $ticket -ConnectorId $connector.Id -MailboxId $mailbox.Id -UserId $ticket.UserId -Type Full -ItemTypes Contact