Hello Leonardo Torres
The MS Doc shows that "Set-Mailbox -ExcludeFromAllOrgHolds" is supported. Or you can feedback a screenshot of your error.
You can also refer to this:
# Exclude specific org-wide holds from a mailbox
Set-Mailbox -Identity Kim.Akers -ExcludeFromOrgHolds "mbx9696959111f74ecda8a40aef97edd2c2:1", "mbx19200b9af08442529be070dae2fd54d3:1"
More details: Excluding Org-Wide Holds from Inactive Mailboxes
Regards
Shaofan
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.