Benutzer mit den meisten Antworten
Exchange 2016 - leere DB lässt sich nicht löschen

Frage
-
Ich möchte eine inzwischen nicht mehr genutzte Datenbank von unserem Exchange 2016 löschen. Die DB Inhalte sind komplett verschoben worden.
Leider weigert sich der Exchange die DB zu löschen.
Der Fehlermeldung entnehme ich, dass angeblich noch Postfächer in dieser DB vorhanden sein sollen (AssociatedUserMailboxExistException). Aber welche Mailboxen und warum tauchen diese bei der Kontrolle nicht auf?Was ist zu tun, damit ich die DB löschen kann?
[PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -Monitoring [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -AuditLog [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -Archive [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -Arbitration [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -PublicFolder [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -RemoteArchive [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -Monitoring [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -AuxAuditLog [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -Migration [PS] C:\Windows\system32>get-mailbox -Database "Ex01 DB OnlineArchiv" -GroupMailbox [PS] C:\Windows\system32>get-mailboxplan [PS] C:\Windows\system32>Get-MoveRequest [PS] C:\Windows\system32>Get-MigrationBatch [PS] C:\Windows\system32>Get-MailboxImportRequest [PS] C:\Windows\system32>Get-MailboxExportRequest [PS] C:\Windows\system32>Remove-MailboxDatabase "Ex01 DB OnlineArchiv" This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes, Audit 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 get a list of all Audit mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -AuditLog. 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. To disable a Audit mailbox so that you can delete the mailbox database, run the command Get-Mailbox -AuditLog | Disable-Mailbox. 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: (Ex01 DB OnlineArchiv:DatabaseIdParameter) [Remove-MailboxDatabase], AssociatedUserMailboxExistException + FullyQualifiedErrorId : [Server=EX01,RequestId=16b1ed00-487e-40d8-8d69-c7f19c65a07f,TimeStamp=01.12.2017 07:59:5 3] [FailureCategory=Cmdlet-AssociatedUserMailboxExistException] 160693D5,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveMailboxDatabase
- Bearbeitet AP IT Mittwoch, 10. Januar 2018 20:40
- Typ geändert Yavor TanevMicrosoft contingent staff Dienstag, 23. Januar 2018 10:45
- Typ geändert NobbyausHBModerator Donnerstag, 12. April 2018 05:58 Aktuelle Antwort
Antworten
-
Moin,
noch einmal zum Verständnis (s. Post von MaddiN78):
Get-Mailbox -Database "Ex01 DB OnlineArchiv" -Archive
gibt die Archivmailboxen derjenigen Postfächer aus, die mit ihrem PRIMÄREN Postfach in der angegebenen DB liegen. Die Archiv-Mailboxen in der DB kriegst Du mit
get-mailbox | where {$_.ArchiveDatabase -eq "Ex01 DB OnlineArchiv"}
In großen Umgebungen würde ich dafür immer mit einer LDAP-Abfrage gegen das AD arbeiten.
Evgenij Smirnov
I work @ msg services ag, Berlin -> http://www.msg-services.de
I blog (in German) @ http://it-pro-berlin.de
my stuff in PSGallery --> https://www.powershellgallery.com/profiles/it-pro-berlin.de/
Exchange User Group, Berlin -> https://exusg.de
Windows Server User Group, Berlin -> http://www.winsvr-berlin.de
Mark Minasi Technical Forum, reloaded -> http://newforum.minasi.com
In theory, there is no difference between theory and practice. In practice, there is.
- Als Antwort vorgeschlagen NobbyausHBModerator Donnerstag, 12. April 2018 05:59
- Als Antwort markiert Yavor TanevMicrosoft contingent staff Mittwoch, 18. April 2018 11:18
Alle Antworten
-
Ich hatte das selbe Problem. Keiner der genannten Get- Befehle gab etwas zurück. Jedoch existiere noch ein Postfach mit aktiviertem In-Situ-Archiv auf der zu löschenden Datenbank.
Get-Mailbox | where {$_.ArchiveDatabase -eq "<databaseName>"}
brachte dieses Postfach zum Vorschein. Scheinbar tauchte es unter
Get-Mailbox -Database "<databaseName>" -Archive
nicht auf, da der Benutzer sich noch nie an seinem Postfach angemeldet hatte.
Nach dem Verschieben des In-Situ-Archiv, konnte die Datenbank problemlos gelöscht werden.
vgl. auch https://blogs.technet.microsoft.com/exchange/2014/03/17/this-mailbox-database-contains-one-or-more-mailboxes/VG Martin
-
Moin,
noch einmal zum Verständnis (s. Post von MaddiN78):
Get-Mailbox -Database "Ex01 DB OnlineArchiv" -Archive
gibt die Archivmailboxen derjenigen Postfächer aus, die mit ihrem PRIMÄREN Postfach in der angegebenen DB liegen. Die Archiv-Mailboxen in der DB kriegst Du mit
get-mailbox | where {$_.ArchiveDatabase -eq "Ex01 DB OnlineArchiv"}
In großen Umgebungen würde ich dafür immer mit einer LDAP-Abfrage gegen das AD arbeiten.
Evgenij Smirnov
I work @ msg services ag, Berlin -> http://www.msg-services.de
I blog (in German) @ http://it-pro-berlin.de
my stuff in PSGallery --> https://www.powershellgallery.com/profiles/it-pro-berlin.de/
Exchange User Group, Berlin -> https://exusg.de
Windows Server User Group, Berlin -> http://www.winsvr-berlin.de
Mark Minasi Technical Forum, reloaded -> http://newforum.minasi.com
In theory, there is no difference between theory and practice. In practice, there is.
- Als Antwort vorgeschlagen NobbyausHBModerator Donnerstag, 12. April 2018 05:59
- Als Antwort markiert Yavor TanevMicrosoft contingent staff Mittwoch, 18. April 2018 11:18