IgnoreLegalHold isn't available or functional for Exchange Online user objects
The IgnoreLegalHold switch specifies whether to ignore a user's legal hold status. This parameter isn't available for these commands:
- Disable-Mailbox
- Remove-Mailbox
- Disable-Mailuser
- Remove-Mailuser
To permanently remove or disable a mailbox on hold, remove the mailbox from the hold. Before you do so, contact your compliance officer, records management team or legal department to understand your organization's policies and requirements regarding holds. For more information on hold identification, see Identify a hold on an Exchange mailbox.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for