Forum Discussion
Orphaned Public Folder mailboxes on Exchange 2016
Hi ullerdk,
thanks for your update.
you can still use (or eve try to use) the ExchangeGUID to remove orphaned Public Folder mailboxes with PowerShell, even if they cannot be found by the Get-Mailbox command. To do this, you can use the following PowerShell cmdlet:
Remove-Mailbox -Identity <ExchangeGUID> -Force
The -Force parameter is required because the orphaned mailboxes are not in a valid state.
You can find the ExchangeGUID by running the following PowerShell cmdlet:
Get-MailboxStatistics -Database <DatabaseName> | where {$_.DisplayName -like "Mailbox*"} | FT DisplayName,MailboxGuid
This cmdlet will return a list of all mailboxes in the specified database, including their name and ExchangeGUID.
Once you have the ExchangeGUID of the orphaned mailbox, you can run the Remove-Mailbox cmdlet to remove the mailbox.
For example, to remove the mailbox with the ExchangeGUID of 12345678-90AB-CDEF-0123-456789ABCDEF, you would run the following PowerShell cmdlet:
Remove-Mailbox -Identity 12345678-90AB-CDEF-0123-456789ABCDEF -Force
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
Does not work:
Remove-mailbox -Identity 15a2517d-15dd-41a1-9953-c18389b658e6 -force
The operation couldn't be performed because object '15a2517d-15dd-41a1-9953-c18389b658e6' couldn't be found on