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

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.