Exclude inactive mailboxes from all org holds

Leonardo Torres 0 Reputation points
2023-11-16T17:22:35.9633333+00:00

I am trying to exclude all inactive mailboxes from all org holds (retention policy)
it seems the SET-Mailbox cmlet is not longer working:
Set-Mailbox -ExcludeFromAllOrgHolds <guid>

is there a new way to get this to work with the new cmlets?

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,628 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shaofan Lv-MSFT 6,915 Reputation points Microsoft Vendor
    2023-11-17T02:43:21.18+00:00

    Hello Leonardo Torres

    The MS Doc shows that "Set-Mailbox -ExcludeFromAllOrgHolds" is supported. Or you can feedback a screenshot of your error.

    User's image

    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.  

    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.