A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Thanks for reaching out to the Microsoft Q&A forum.
I tried to replicate the situation in my environment, and here’s what I’ve observed so far:
When running Export-QuarantineMessage with only the –ReasonForExport parameter, I received the same response you described.
After adding –CompressOutput, the command executed successfully.
However, when I specified a value for -CompressOutput, I encountered an error indicating that this parameter does not accept explicit values.
This aligns with the official documentation: Export-QuarantineMessage (ExchangePowerShell) | Microsoft Learn
Based on this, the behavior seems slightly different from what I understood from your description. Could you confirm if the same situation occurs in your environment?
During my research, I couldn’t find any official documentation stating that –CompressOutput is required when using –ReasonForExport. Additionally, through testing, I discovered that –CompressOutput is also required when using –PasswordV2.
That said, aside from my findings regarding –PasswordV2, if your environment does not behave the same way as mine, I recommend raising a support ticket with the Microsoft Support team through the Microsoft Admin Center for deeper assistance.
I hope this provides additional insight. If you have any updates or further questions, please feel free to reach out.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.