Trying to copy messages from several mailboxes into one

Home Forums Scripting PowerShell Trying to copy messages from several mailboxes into one

This topic contains 0 replies, has 1 voice, and was last updated by Avatar jason0923 3 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    jason0923
    Participant
    #166531

    So I’m trying to recover for legal purposes all email between 2 dates to another mailbox. For some reason the Compliance search in O365 isn;t working right now. With the below command I can export this email from my account between those dates but I cannot figure out if there is a command to copy this email from all mailboxes to the archive one between these dates. Does anyone know what that syntax might be?

    Get-Mailbox [email protected]| Search-Mailbox -SearchQuery {Received:”05/15/2016..06/7/2016″} -TargetMailbox [email protected] -TargetFolder “Query1”

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.