Dogana
asked on
how to uninstall exchange 2010 from Win 2008 R2
I have installed Exchange 2010 on windows server 2008 R2 64 bit OS for testing purpose, and now i need to uninstall it, i have tried but i can't uninstall, error shown in faild result is:
uninstall cannot continue .'Summary: 1 item(s). 0 succeeded, 1 failed.
Mailbox Role Prerequisites
Failed
Error:
Uninstall cannot continue.
Database 'Mailbox Database 1229298607': This mailbox database contains one or more 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 arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. Before you can remove this mailbox database, you must disable, move, or remove user mailboxes and move arbitration mailboxes.
Recommended Action: http://go.microsoft.com/fwlink/?linkid=30939&l=en&v=ExBPA.4&id=4a96fd69-9cec-4a48-9571-5c9e8ab3cfe9
Attached as Image here.
........
Can someone give me any solution and exampel to succesfully uninstall exchange 2010 from Win 2008 R2?
Thankfully
Uninstall-exchange-2010-error.jpg
uninstall cannot continue .'Summary: 1 item(s). 0 succeeded, 1 failed.
Mailbox Role Prerequisites
Failed
Error:
Uninstall cannot continue.
Database 'Mailbox Database 1229298607': This mailbox database contains one or more 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 arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. Before you can remove this mailbox database, you must disable, move, or remove user mailboxes and move arbitration mailboxes.
Recommended Action: http://go.microsoft.com/fwlink/?linkid=30939&l=en&v=ExBPA.4&id=4a96fd69-9cec-4a48-9571-5c9e8ab3cfe9
Attached as Image here.
........
Can someone give me any solution and exampel to succesfully uninstall exchange 2010 from Win 2008 R2?
Thankfully
Uninstall-exchange-2010-error.jpg
The error message itself has the solution. Go ahead and delete the Mailboxes (Under Mailbox Database 1229298607) you must have created. Once all the mailboxes has been deleted, you will be able to uninstall Exchange 2010.
I had this issue on my lab the other week, first remove any mailboxes, if you still have an issue (Which I did) you can forcibly remove exchange 2010 by doing the following
(If this is your only exchange you want removing)
Open adsiedit.msc, open configuration > Services and delete CN=Microsoft Exchange (this removes the entire org)
If you jsut want 1 server gone go down 1 more lever to CN=Servers and remove your server.
Then Use Registry Editor to remove the following Exchange registry keys form the server itself
HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Exchange
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\DAV EX
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\EXI FS
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\ExI PC
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\EXO LEDB
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\IMA P4Svc
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeAct iveSynchNo tify
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeADD XA
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeAL
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeDSA ccess
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeES
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeFBP ublish
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeIS
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeMGM T
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeMTA
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeMU
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeOMA
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeSA
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeSRS
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeTra nsport
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\MSE xchangeWEB
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\POP 3Svc
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\RES vc
Then delete the exchange install files.
I reinstalled exchange after doing the above btw then broke it and removed it again and it still runs ok after reinstalling.
(If this is your only exchange you want removing)
Open adsiedit.msc, open configuration > Services and delete CN=Microsoft Exchange (this removes the entire org)
If you jsut want 1 server gone go down 1 more lever to CN=Servers and remove your server.
Then Use Registry Editor to remove the following Exchange registry keys form the server itself
HKEY_LOCAL_MACHINE\SOFTWAR
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
HKEY_LOCAL_MACHINE\SYSTEM\
Then delete the exchange install files.
I reinstalled exchange after doing the above btw then broke it and removed it again and it still runs ok after reinstalling.
from powershell run
Get-Mailbox -Database 'Mailbox Database 1229298607' | disable-mailbox
Get-Mailbox -Database 'Mailbox Database 1229298607' -Arbitration | disable-mailbox -arbitraion -DisableLastArbitrationMai lboxAllowe d :$true
and try again
Get-Mailbox -Database 'Mailbox Database 1229298607' | disable-mailbox
Get-Mailbox -Database 'Mailbox Database 1229298607' -Arbitration | disable-mailbox -arbitraion -DisableLastArbitrationMai
and try again
ASKER
Mr.Akhater-
I tryed this and i get the following...
-------------------------- ---------- ---------- ---------- ----
The term 'Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12
+ Get-Mailbox <<<< -Database 'Mailbox Database 1229298607' | disable-mailbox
+ CategoryInfo : ObjectNotFound: (Get-Mailbox:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
I tryed this and i get the following...
--------------------------
The term 'Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12
+ Get-Mailbox <<<< -Database 'Mailbox Database 1229298607' | disable-mailbox
+ CategoryInfo : ObjectNotFound: (Get-Mailbox:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
--------------------------
you ran the get-mailbox from the exchange management shell ?
ASKER
no. how?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've done it. problem was that i didn,t ran from the exchange powershell. i 've run the same command as Akhater wrotte me, and now everything is ok.
thank you all.
thank you all.
Glad i was able to help, if you are ok with the solution please close the question
thanks
thanks
ASKER
i've just done it. thanks again.