In a Microsoft Exchange Server 2019 or Exchange Server 2016 environment, consider the following scenario:
- You create an organization that has at least two domains. A mailbox for userA is created in the domain that does not have Exchange server.
- Run the Set-ADServerSettings -ViewEntireForest $true cmdlet.
- You create an in-place hold by using the New-MailboxSearch -Name <Hold1> -SourceMailboxes <userA> -InPlaceHoldEnabled $true cmdlet.
- Run the Get-Mailbox cmdlet for the userA and view the In-Place Hold value. The GUID should be populated because it's now part of an in-place hold.
- Run the Set-MailboxSearch <Hold1> -SourceMailboxes $null -InPlaceHoldEnabled $false cmdlet.
- Run the Get-Mailbox cmdlet again and note the value should not be populated.
- Run the Remove-MailboxSearch cmdlet for Hold1, it should be get removed.