The command 'Export-QuarantineMessage' does not work

benroz 1 Reputation point
2022-10-25T07:21:26.24+00:00

Hello friends,

I am trying to get the eml file of a message via Exchange online commands but I got timeout every time I tried,
also I tried on a different messages but again got time out every time.

$eml = Export-QuarantineMessage -Identity <Message_Identity>

this command works perfectly before a month but in the last two weeks is not.

notice1: I tried to run this on two different exchange account also nothing works...
notice2: I working with macOS pwsh.

please I would like to your help guys,
thanks

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,477 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,590 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Ward 1 Reputation point
    2023-01-09T15:08:48.147+00:00

    Try using this to connect Connect-ExchangeOnline -Credential $Credential -UseRPSSession . When you don't use the -UseRPSession flag you only get access to the REST cmdlets which export is not a part of.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.