Hi All,
Good Day!!!,
We are completed migration of all on-prem mailbox to O365 and now planned to removal of on-prem Exchange 2013 server we could not , stuck on public folder removal from exchange 2013
the following log will help to understand more
we run the below command for removal of public folders database
[PS] C:\Windows\system32>Remove-MailboxDatabase -Identity "DB01-Users"
Creating a new session for implicit remoting of "Remove-MailboxDatabase" command...
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or
arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database
<Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of
archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all
public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a
list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration.
To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox
<Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox
<Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command
Disable-Mailbox <Mailbox ID> -PublicFolder. Arbitration mailboxes should be moved to another server; to do this, run
the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command
Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox.
Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID>
-Database <Database ID>.
+ CategoryInfo : InvalidOperation: (DB01-Users:DatabaseIdParameter) [Remove-MailboxDatabase], Ass
ociatedUserMailboxExistException
+ FullyQualifiedErrorId : [Server=MBX02,RequestId=ce865cb5-e7ca-4618-8f24-07762d7cef16,TimeStamp=11/10/2016
5:06:09 AM] [FailureCategory=Cmdlet-AssociatedUserMailboxExistException] B9552404,Microsoft.Exchange.Management.S
ystemConfigurationTasks.RemoveMailboxDatabase
+ PSComputerName : MBX02.domain.com
As per the issue we checked the below command:
We Run the below command to check is there any items are available on this
get-mailbox -database " DB01-Users " –arhive
---there is no output for this command
get-mailbox -database " DB01-Users" –arbitration
---there is no output for this command
[PS] C:\Windows\system32>get-mailbox -database " DB01-Users" -publicfolder
Name Alias ServerName ProhibitSendQuota
PBFolder1 PBFolder1 MBX02.domain.com Unlimited
PBFolder2 PBFolder2 MBX02.domain.com Unlimited
[PS] C:\Windows\system32>get-mailbox -database " DB01-Users " -monitoring
Name Alias ServerName ProhibitSendQuota
HealthMailbox6c5eae932... HealthMailbox6c5e... MBX02.domain.com Unlimited
HealthMailbox0fb61aabc... HealthMailbox0fb6... MBX02.domain.com Unlimited
HealthMailbox19d7d53fb... HealthMailbox19d7... MBX02.domain.com Unlimited
HealthMailbox524ac8e84... HealthMailbox524a... MBX02.domain.com Unlimited
HealthMailboxfeeb070f1... HealthMailboxfeeb... MBX01.domain.com Unlimited
HealthMailboxb4848f75c... HealthMailboxb484... MBX02.domain.com Unlimited
HealthMailboxf785cf841... HealthMailboxf785... MBX02.domain.com Unlimited
HealthMailboxc419a1a2e... HealthMailboxc419... MBX02.domain.com Unlimited
HealthMailbox72e47bc87... HealthMailbox72e4... MBX02.domain.com Unlimited
We tried to remove public folder mailbox using below commands but failed
Remove-PublicFolder -Identity "\75e9f637-3bd5-41a1-918b-8440c34ded7e" -Recurse: $True
Remove-PublicFolder -Identity "\483d384f-17b2-444f-aea2-c92f468676b2" -Recurse: $True
Also when run the below command
C:\Windows\system32>Get-PublicFolder
Name Parent Path
IPM_SUBTREE
Regards, Kesa_Kara Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.