Skip to main content

Move-MSGraphMail

SYNOPSIS

Moves emails from a mailbox using the Microsoft Graph API.

SYNTAX

Move-MSGraphMail -Mailbox <String> -MessageID <String[]> [-Folder <String>] [-Destination <String>]
[<CommonParameters>]

DESCRIPTION

Moves emails between folders in a mailbox using the Microsoft Graph API. The mailbox can be specified using a UPN or a mailbox ID. The mailbox can be filtered using a folder ID.

EXAMPLES

PARAMETERS

-Mailbox

Specify the mailbox (or UPN) to move emails for.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MessageID

Retrieve a single message using a message ID.

Type: String[]
Parameter Sets: (All)
Aliases: id

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Folder

Retrieve from folder.

Type: String
Parameter Sets: (All)
Aliases: parentFolderId

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Destination

Destination.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Deleteditems
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

A powershell object containing the response.

NOTES