Ik ben nog steeds aan het proberen de oude Exchange 2013 database te verwijderen zodat we van die server af kunnen. Alles is inmiddels verplaats naar de nieuwe database. Op 1 mailbox na blijkt nu.
Als ik het commando Remove-MailboxDatabase combineer met de -Verbose parameter draai blijkt er nog 1 mailbox in de database te zitten.
Remove-MailboxDatabase : Mailbox with DistinguishedName CN=SystemMailbox{1f05a927-192f-4044-b53a-64ecc9780e32},CN=Users,DC=xxxxx,DC=xxx,DC=local" is still present in this database.
Het blijkt nu dat dit het Microsoft Exchange Approval Assistant account is (opgezocht in Active Directory).
Hoe krijg ik deze mailbox uit de oude database? Of, hoe laat ik dit account verwijzen naar de nieuwe database?
Ik zie nu in ADSI dat de waarde homeMDB bij dit account nog verwijst naar de oude database.
Ik ben erachter gekomen dat ik te weinig rechten had op het gebeuren, dat heb ik gecorrigeerd. In totaal zijn er nog 7 hidden mailboxen (tbv Arbitration en Monitoring). Die ben ik nu aan het verplaatsen.
Zojuist onderstaande uitgevoerd:
[PS] C:\Windows\system32>Remove-MailboxDatabase "Mailbox Database 0118869248" -Verbose
VERBOSE: [08:48:50.673 GMT] Remove-MailboxDatabase : Runspace context: Executing user:
xxxxx.xxx.local/Personeel/xxxxx, Executing user organization: , Current organization: , RBAC-enabled:
Enabled.
VERBOSE: [08:48:50.673 GMT] Remove-MailboxDatabase : Initializing Active Directory server settings for the remote
Windows PowerShell session.
VERBOSE: [08:48:50.689 GMT] Remove-MailboxDatabase : Active Directory session settings for 'Remove-MailboxDatabase'
are: View Entire Forest: 'False', Default Scope: 'xxxx.xxx.local', Configuration Domain Controller:
'XXXXX.xxxxx.xxx.local', Preferred Global Catalog: 'XXXXX.xxxxx.xxx.local', Preferred Domain Controllers:
'{XXXXX.xxxxx.xxx.local }'
VERBOSE: [08:48:50.689 GMT] Remove-MailboxDatabase : Beginning processing Remove-MailboxDatabase
VERBOSE: [08:48:50.720 GMT] Remove-MailboxDatabase : Instantiating handler with index 0 for cmdlet extension agent
"Admin Audit Log Agent".
VERBOSE: [08:48:50.767 GMT] Remove-MailboxDatabase : Current ScopeSet is: { Recipient Read Scope: {{, }}, Recipient
Write Scopes: {{, }}, Configuration Read Scope: {{, }}, Configuration Write Scope(s): {{, }, }, Exclusive Recipient
Scope(s): {}, Exclusive Configuration Scope(s): {} }
VERBOSE: [08:48:50.814 GMT] Remove-MailboxDatabase : Searching objects "Mailbox Database 0118869248" of type
"MailboxDatabase" under the root "$null".
VERBOSE: [08:48:50.845 GMT] Remove-MailboxDatabase : Previous operation run on domain controller
'XXXXX.xxxxx.xxx.local'.
VERBOSE: [08:48:50.923 GMT] Remove-MailboxDatabase : Verifying that there is no associated mailbox user or move request
on the mailbox database "Mailbox Database 0118869248".
VERBOSE: [08:48:50.970 GMT] Remove-MailboxDatabase : Verifying that there is no Microsoft Exchange Mailbox Replication
service request associated with mailbox database "Mailbox Database 0118869248".
VERBOSE: [08:48:51.032 GMT] Remove-MailboxDatabase : The Admin RPC connection is being established with server
"XXXXX.xxxxx.xxx.local".
VERBOSE: [08:48:51.391 GMT] Remove-MailboxDatabase : Checking the status of database "Mailbox Database 0118869248".
VERBOSE: [08:48:51.516 GMT] Remove-MailboxDatabase : Admin Audit Log: Entered Handler:Validate.
VERBOSE: [08:48:51.516 GMT] Remove-MailboxDatabase : Admin Audit Log: Entered ClassFactory:InitializeConfig.
VERBOSE: [08:48:51.594 GMT] Remove-MailboxDatabase : Admin Audit Log: Exited ClassFactory:InitializeConfig.
VERBOSE: [08:48:51.609 GMT] Remove-MailboxDatabase : Admin Audit Log: Exited Handler:Validate.
Confirm
Are you sure you want to perform this action?
Removing mailbox database "Mailbox Database 0118869248".
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"):
VERBOSE: [08:49:13.060 GMT] Remove-MailboxDatabase : Resolved current organization: .
VERBOSE: [08:49:13.060 GMT] Remove-MailboxDatabase : PreInternalProcessRecord on cmdlet extension agent index '0'
returned object changed flag as 'False'.
VERBOSE: [08:49:13.060 GMT] Remove-MailboxDatabase : The Admin RPC connection is being established with server
"XXXXX.xxxxx.xxx.local".
VERBOSE: [08:49:13.075 GMT] Remove-MailboxDatabase : Checking the status of database "Mailbox Database 0118869248".
VERBOSE: [08:49:13.075 GMT] Remove-MailboxDatabase : Dismounting the database, "Mailbox Database 0118869248".
VERBOSE: [08:49:50.328 GMT] Remove-MailboxDatabase : Searching objects "xxxxxx.xxx.local/Microsoft Exchange System
Objects/SystemMailbox{8a7935c2-cd94-4ccd-961f-4a953ea03a38}" of type "ADRecipient" under the root "$null".
VERBOSE: [08:49:50.344 GMT] Remove-MailboxDatabase : Previous operation run on domain controller
'XXXXX.xxxxx.xxx.local'.
VERBOSE: [08:49:50.359 GMT] Remove-MailboxDatabase : Deleting the System Attendant object "xxxxx.xxx.local/Microsoft
Exchange System Objects/SystemMailbox{8a7935c2-cd94-4ccd-961f-4a953ea03a38}".
VERBOSE: [08:49:50.531 GMT] Remove-MailboxDatabase : Previous operation run on domain controller
'XXXXX.xxxxx.xxx.local'.
VERBOSE: [08:49:50.546 GMT] Remove-MailboxDatabase : Deleting monitoring mailboxes from database "Mailbox Database
0118869248".
VERBOSE: [08:49:50.640 GMT] Remove-MailboxDatabase : Deleting "Mailbox Database 0118869248" of type "MailboxDatabase".
VERBOSE: [08:49:50.765 GMT] Remove-MailboxDatabase : Previous operation run on domain controller
'XXXXX.xxxxx.xxx.local'.
WARNING: The specified database has been removed. You must remove the database file located in D:\Program
Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0118869248\Mailbox Database 0118869248.edb from your
computer manually if it exists. Specified database: Mailbox Database 0118869248
VERBOSE: [08:49:50.796 GMT] Remove-MailboxDatabase : Searching objects of type "MailboxDatabase" with filter
"(OriginalDatabase Equal 8a7935c2-cd94-4ccd-961f-4a953ea03a38)", scope "SubTree" under the root "$null".
VERBOSE: [08:49:50.796 GMT] Remove-MailboxDatabase : Previous operation run on domain controller
'XXXXX.xxxxx.xxx.local'.
VERBOSE: [08:49:50.796 GMT] Remove-MailboxDatabase : Admin Audit Log: Entered Handler:OnComplete.
VERBOSE: [08:49:51.124 GMT] Remove-MailboxDatabase : Admin Audit Log: Exited Handler:OnComplete.
VERBOSE: [08:49:51.139 GMT] Remove-MailboxDatabase : Ending processing Remove-MailboxDatabase
De database is nu succesvol verwijderd.
Vervolgens geprobeerd Exchange volledig te verwijderen van de server. Krijg ik de melding:
There are messages waiting in the following queues: XXXXX\Shadow\3.
Ik heb gekeken met de Exchange Toolbox en ik zie inderdaad berichten voorbij komen. Blijkbaar verwijst er nog steeds iets naar de oude server alhoewel de database er nu niet meer is.
[
Voor 89% gewijzigd door
be3a18 op 11-12-2018 10:19
]