I am trying to remove the last and only Exchange server 2019 after doing a cut over migration to Office 365.
This is the procedure I used:
Set-ADServerSettings -ViewEntireForest $true
Get-MoveRequest | Remove-MoveRequest -Confirm:$false
Get-OfflineAddressBook | Remove-OfflineAddressBook -Confirm:$false
Get-Mailbox -ResultSize Unlimited | Disable-Mailbox -Confirm:$false
Get-Mailbox -ResultSize Unlimited -Archive | Disable-Mailbox -Confirm:$false
Get-Mailbox -ResultSize Unlimited -PublicFolder | Disable-Mailbox -Confirm:$false
Get-Mailbox -AuditLog | Disable-Mailbox -Confirm:$false
Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed -Confirm:$false
Get-MailboxDatabase | Remove-MailboxDatabase -Confirm:$false
I then went to control panel Programs and Features to unistall Exchange, which stated thet prerequisites were accepted.
At Step 7 the uninstall stoped working with this:
Error:
The following error was generated when "$error.Clear();
uninstall-ExsetDataAtom -AtomName OrgLevelCt -DomainController $RoleDomainController
" was run: "Microsoft.Exchange.Management.Deployment.ExsetdataException: An error occurred with error code '2147942405' and message 'Access denied.'.
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowTerminatingError(Exception exception, ErrorCategory category, Object target)
at Microsoft.Exchange.Management.Deployment.ManageExsetdataAtom.HandleExsetdataReturnCode(UInt32 scErr)
at Microsoft.Exchange.Management.Deployment.ManageExsetdataAtom.UninstallAtom(AtomID atomID)
at Microsoft.Exchange.Management.Deployment.UninstallExsetdataAtom.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
I tried to restart the uninstall and run again but would allow me to.
So I have restored the WSE2016 server and EXCH2019 server and I am back to stage one.
So my question is was the procedure above the correct way to uninstall?
Was there anything else I could have done prior to starting.
If I go through the procedure again and it bombs out (already tried 2 times so the problem is repeatable) should I just accept and do the next suggest manual uninstall in Active directory.
Removed link to spam company.
Regards David Moore.