Unable to uninstall Exchange 2007
		
	Hi everyone.I am having a problem uninstalling Exchange 2007. I am getting the following errors:
Summary: 3 item(s). 1 succeeded, 2 failed. Elapsed time: 00:00:18Client Access Role PrerequisitesCompletedElapsed Time: 00:00:09Hub Transport Role PrerequisitesFailedError:This computer is configured as a bridgehead server for 2 routing group connector(s) in the organization. These must be moved or deleted before Setup can continue.Elapsed Time: 00:00:04Mailbox Role PrerequisitesFailedError:Uninstall cannot continue. Database 'Public Folder Database': The public folder database that you specified is in use by a mailbox database. Mailbox database: Mailbox Database.Recommended Action: http://go.microsoft.com/fwlink/?link...7-72288ac15f60Elapsed Time: 00:00:04
Any ideas on what i should do?
Thanks!		
				June 19th, 2007 8:47pm
			try these below,
hope this helps
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorActionilentlyContinue
Get-PublicFolder -Server xxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server xxxxx -Recurse -ErrorActionilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
in ADSIEdit, go to Configuration, Configuration, Services, Microsoft Exchange, First 
Organization, Administrative Groups, Exchange Administrative Group, Servers, Servername, Information Store, First Storage 
Group. Then on the right hand pane, highlight the Public Folder Store and Delete it. This performs basically the 
same function as the cmdlet does, or removing it via the Exchange Management Console.		
				Free Windows Admin Tool Kit Click here and download it now
					June 21st, 2007 2:25pm
			You will also need to remove those connectors on the Bridgehead server to continue the uninstall.		
				June 21st, 2007 9:40pm
			how do i remove the connectors? 
Also, what is the face supposed to be? what symbol? in the 2nd post?
here is what im getting
[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server imiapp07
ConfirmAre you sure you want to perform this action?Removing public folder "\". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):-Recurse -ErrorActionilentlyContinuey Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):yRemove-PublicFolder : Modification of the root folder '\' is not allowed.At line:1 char:91+ Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<< -server imiapp07[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server imiapp07
ConfirmAre you sure you want to perform this action?Removing public folder "\". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):n[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server imiapp07
ConfirmAre you sure you want to perform this action?Removing public folder "\". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):yRemove-PublicFolder : Modification of the root folder '\' is not allowed.At line:1 char:91+ Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<< -server imiapp07[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server imiapp07
ConfirmAre you sure you want to perform this action?Removing public folder "\". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):aRemove-PublicFolder : Modification of the root folder '\' is not allowed.At line:1 char:91+ Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<< -server imiapp07[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder-server imiapp07The term 'Remove-PublicFolder-server' is not recognized as a cmdlet, function,operable program, or script file. Verify the term and try again.At line:1 char:98+ Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder-server <<<< imiapp07[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server imiapp07
ConfirmAre you sure you want to perform this action?Removing public folder "\". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):yRemove-PublicFolder : Modification of the root folder '\' is not allowed.At line:1 char:91+ Get-PublicFolder -server imiapp07 "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<< -server imiapp07[PS] C:\Documents and Settings\adam.lowe>Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolderRemove-PublicFolder : The folder '\NON_IPM_SUBTREE' has subfolders, so it cannot be deleted.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<
ConfirmAre you sure you want to perform this action?Removing public folder "\NON_IPM_SUBTREE\EFORMS REGISTRY". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):yRemove-PublicFolder : Cannot delete the object '\NON_IPM_SUBTREE\EFORMS REGISTRY'. Please make sure that you specified the correct identity and that you havethe correct permissions to delete it.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<
ConfirmAre you sure you want to perform this action?Removing public folder "\NON_IPM_SUBTREE\Events Root". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):yRemove-PublicFolder : Cannot delete the object '\NON_IPM_SUBTREE\Events Root'.Please make sure that you specified the correct identity and that you have thecorrect permissions to delete it.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<Remove-PublicFolder : The folder '\NON_IPM_SUBTREE\OFFLINE ADDRESS BOOK' has subfolders, so it cannot be deleted.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<
ConfirmAre you sure you want to perform this action?Removing public folder "\NON_IPM_SUBTREE\OFFLINE ADDRESS BOOK\EX:/o=IMIHealth/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):yRemove-PublicFolder : Cannot delete the object '\NON_IPM_SUBTREE\OFFLINE ADDRESS BOOK\EX:/o=IMI Health/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)'. Please make sure that you specified the correct identity and that you have the correct permissions to delete it.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<
ConfirmAre you sure you want to perform this action?Removing public folder"\NON_IPM_SUBTREE\OWAScratchPad{26860DF0-8D3E-4C2B-93FF-3C99B8C5668C}". Yes  Yes to All  No [L] No to All  Suspend [?] Help(default is "Y"):aRemove-PublicFolder : The folder '\NON_IPM_SUBTREE\SCHEDULE+ FREE BUSY' has subfolders, so it cannot be deleted.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<Remove-PublicFolder : Cannot delete the object '\NON_IPM_SUBTREE\SCHEDULE+ FREEBUSY\EX:/o=IMI Health/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)'. Please make sure that you specified the correct identity and that you have the correct permissions to delete it.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<Remove-PublicFolder : The folder '\NON_IPM_SUBTREE\StoreEvents{26860DF0-8D3E-4C2B-93FF-3C99B8C5668C}' has subfolders, so it cannot be deleted.At line:1 char:106+ Get-PublicFolder -Server imiapp07 "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder <<<<		
				Free Windows Admin Tool Kit Click here and download it now
					June 21st, 2007 11:35pm
			ok that face should not be there but you obviously have the syntax right..........have you deleted any manually created public folders ? 
try the adsi edit................after that I think I may havehad to goback to cmlet and re-tried those commands		
				June 23rd, 2007 2:14pm
			Yes it worked.. I haveused ADSI editto delete the "Public Folder Database" key.
Now I have succesfully uninstalled exchange 2007		
				Free Windows Admin Tool Kit Click here and download it now
					November 24th, 2007 1:29am
			Niamh wrote:
t
in ADSIEdit, go to Configuration, Configuration, Services, Microsoft Exchange, First 
Organization, Administrative Groups, Exchange Administrative Group, Servers, Servername, Information Store, First Storage 
Group. Then on the right hand pane, highlight the Public Folder Store and Delete it. This performs basically the 
same function as the cmdlet does, or removing it via the Exchange Management Console.Sorry to bump, but I spent about 6 hours fighting this damn problem (Because I didnt RTFM and realize 2k7 REQUIRES 2 servers), but I wanted to let people know, that if all else fails manually editing the schema as listed above is the way to go. I receieved errors using the MMC, the PowerShell, and every other way I could think of, despite holding ALL admin rihgts on the server / domain. I even went so far as to dismount the store, manually delete the store DB, remount (Causing a new Public Folder store creation) and trying to delete. I weeded through tons of MS docs related to OAB removal, public folder removal, etc and NOTHING worked. ADSI worked like a charm.THANK YOU 1,000,000 TIMES OVER! Saved me a reformat I didnt want to have to do.Also, you should prolly warn people that messing with ADSI is more leathal than the registry, so DONT use it if you dont know what it is and does!		
				April 12th, 2008 11:55pm
			Niamh wrote:
try these below,
hope this helps
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorActionilentlyContinue
Get-PublicFolder -Server xxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server xxxxx -Recurse -ErrorActionilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
in ADSIEdit, go to Configuration, Configuration, Services, Microsoft Exchange, First 
Organization, Administrative Groups, Exchange Administrative Group, Servers, Servername, Information Store, First Storage 
Group. Then on the right hand pane, highlight the Public Folder Store and Delete it. This performs basically the 
same function as the cmdlet does, or removing it via the Exchange Management Console.
this helped me TREMENDOULSY as well. i installed exchange 2k7 to a drive, thinking i could change where the log and database files were. well, you can still only specify where the data file is, not the log (unless there's some reg setting i didn't find? anyway). so i've been trying to uninstall for hours, only to get that stupid replica error when trying to remove that public folder.
i used the adsiedit method, and it works like a charm.
THANKS!		
				Free Windows Admin Tool Kit Click here and download it now
					April 15th, 2008 2:33am
			Niamh, you are a savior. This fixed my problem, too. I had the same issue as Doctahjones where I moved the location of the logs and data files. That's when everything got really messed up. Thank you so much!		
				May 8th, 2008 1:32am
			you're very welcome Andy. glad it helped. I've had my share of "fun" uninstalling		
				Free Windows Admin Tool Kit Click here and download it now
					May 10th, 2008 1:46am
			Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorActionilentlyContinue
Get-PublicFolder -Server xxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server xxxxx -Recurse -ErrorActionilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
in ADSIEdit, go to Configuration, Configuration, Services, Microsoft Exchange, First
Organization, Administrative Groups, Exchange Administrative Group, Servers, Servername, Information Store, First Storage
Group. Then on the right hand pane, highlight the Public Folder Store and Delete it. This performs basically the
same function as the cmdlet does, or removing it via the Exchange Management Console.
Oh my, this is exactly what i needed, i been stuck trying to remove public folders for days, please add this to all of your technet articles.		
				June 1st, 2009 4:46am
			I needed this today too. Spent a good 2 hours trying to remove it the "right" way via the TechNet articles. Uninstalled so perfectly. Thank you!		
				Free Windows Admin Tool Kit Click here and download it now
					July 12th, 2009 3:25am
			below link will help you :
 
http://support.microsoft.com/default.aspx?scid=kb;EN-US;927464
http://technet.microsoft.com/en-us/library/bb123893(EXCHG.80).aspxDinesh		
				August 21st, 2010 9:15pm
			 Other recent topics
			Other recent topics
		

