Need help removing Pub Folder Store From Exchange 2007 serever
Current Config Exchange 2003 Ent. Single server providing OWA, ActiveSync, and mailbox access via Outlook 2k3 and 2k7. Exchange 2k7 single server with CAS, HT, and MBX roles only. EX2k7 has no mailboxes and needs to be removed from AD because we are going to install EX2k7 as 2 node MBX SCC with 2 node NLB for the CAS/HT.) What has been done so far I have removed the HT and CAS roles from the single EX2k7. I have moved all mailboxes to the EX2k3 server. Problem I need help with When I try to remove the Pub folder store I get the following message: -------------------------------------------------------- Microsoft Exchange Error -------------------------------------------------------- The public folder database 'Public Folder Database' cannot be deleted. Public Folder Database Failed Error: The public folder database "SERVERNAME\Public Folder Storage\Public Folder Database" contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see http://go.microsoft.com/fwlink/?linkid=81409. -------------------------------------------------------- OK I have followed steps 1 – 3 from TechNet post http://technet.microsoft.com/en-us/library/dd876883(EXCHG.140).aspx Step 1: Delete unnecessary public folders Moved all replicas to the EX2K3 server and Deleted all replicas from the EX2k7 server Step 2: Move the public folder replicas to another server Used the ESM on the EX2k3 folder to move all replicas to the EX2k3 server, and used the following scripts to move all replicas to the EX2k3 server and delete them from the EX2k7 server: MoveAllReplicas.ps1 -Server EX2k7 -NewServer EX2k3 Get-PublicFolder –ID '\' –Server EX2k7 -Recurse –ResultSize Unlimited | Remove-PublicFolder –Recurse Get-PublicFolder –ID \'Non_Ipm_Subtree' –Server EX2k7 -Recurse –ResultSize Unlimited | Remove-PublicFolder –Recurse When I run Get-PublicFolder –ID \'Non_Ipm_Subtree' –Server EX2k7 -Recurse –ResultSize Unlimited | Remove-PublicFolder –Recurse I get the following error on all the PFs it is trying to act on: [PS] C:\ >Get-PublicFolder -ID \'Non_Ipm_Subtree' -Server davidbowie -Recurse -ResultSize Unlim ted | Remove-PublicFolder -Recurse Confirm Are you sure you want to perform this action? Removing public folder "\NON_IPM_SUBTREE". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y Remove-PublicFolder : Modification of the '\NON_IPM_SUBTREE' folder is not allowed. At line:1 char:113 + Get-PublicFolder -ID \'Non_Ipm_Subtree' -Server davidbowie -Recurse -ResultSize Unlimited | Remove-PublicFolder <<< < -Recurse Confirm Are you sure you want to perform this action? Removing public folder "\NON_IPM_SUBTREE\EFORMS REGISTRY". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y Remove-PublicFolder : Cannot delete the object '\NON_IPM_SUBTREE\EFORMS REGISTRY'. Please make sure that you specified the correct identity and that you have the correct permissions to delete it. At line:1 char:113 + Get-PublicFolder -ID \'Non_Ipm_Subtree' -Server davidbowie -Recurse -ResultSize Unlimited | Remove-PublicFolder <<< < -Recurse When I run the Get-PublicFolder –ID '\' command after running all the above steps I get the following output: [PS] C:\ >Get-PublicFolder -ID '\' Name Parent Path ---- ----------- IPM_SUBTREE Step 3: Associate mailbox databases with another default public folder database This step went as expected with no errors. The only PF I can see on the EX2k7 server is the Internet Newsgroups folder which indicates its replica is on the EX2k3 server. All the system PFs show as being replicated on the EX2k3 server from within the property page. When I run the command Get-PublicFolderStatistics -server EX2k7 | fl | out-file C:\SUPPORT\PFIPMSubstat.txt I get the following output: AdminDisplayName : Schedule+ Free Busy Information - Exchange Administrative Group (FYDIBOHF23SPDLT) AssociatedItemCount : 0 ContactCount : 0 CreationTime : 10/1/2009 10:12:02 AM DeletedItemCount : 0 EntryId : A447390AA6611CD9BC800AA002FC45A03006A117FA50531CF4EBC4BCF362378D70C0000000000070000 ExpiryTime : 6/26/2010 1:00:00 AM FolderPath : SCHEDULE+ FREE BUSY\EX:/o=company/ou=Exchange Administrative Group (FYDIBOHF23SPDLT) IsDeletePending : True ItemCount : 0 LastAccessTime : 10/4/2010 1:00:00 AM LastModificationTime : 10/3/2010 3:12:21 PM Name : EX:/o=company/ou=Exchange Administrative Group (FYDIBOHF23SPDLT) OwnerCount : 0 TotalAssociatedItemSize : 0B TotalDeletedItemSize : 0B TotalItemSize : 0B ServerName : EX2K7 StorageGroupName : Public Folder Storage DatabaseName : Public Folder Database Identity : A447390AA6611CD9BC800AA002FC45A03006A117FA50531CF4EBC4BCF362378D70C0000000000070000 IsValid : True OriginatingServer : EX2K7.company.com AdminDisplayName : Offline Address Book - Exchange Administrative Group (FYDIBOHF23SPDLT) AssociatedItemCount : 0 ContactCount : 0 CreationTime : 10/1/2009 10:12:02 AM DeletedItemCount : 0 EntryId : 000000001A447390AA6611CD9BC800AA002FC45A03006A117FA50531CF4EBC4BCF362378D70C0000000000080000 ExpiryTime : FolderPath : OFFLINE ADDRESS BOOK\EX:/o=company/ou=Exchange Administrative Group (FYDIBOHF23SPDLT) IsDeletePending : True ItemCount : 0 LastAccessTime : 10/4/2010 1:00:00 AM LastModificationTime : 10/3/2010 3:12:21 PM Name : EX:/o=company/ou=Exchange Administrative Group (FYDIBOHF23SPDLT) OwnerCount : 0 TotalAssociatedItemSize : 0B TotalDeletedItemSize : 0B TotalItemSize : 0B ServerName : EX2K7 StorageGroupName : Public Folder Storage DatabaseName : Public Folder Database Identity : 000000001A447390AA6611CD9BC800AA002FC45A03006A117FA50531CF4EBC4BCF362378D70C0000000000080000 IsValid : True OriginatingServer : EX2K7.company.com > > > AdminDisplayName : Internet Newsgroups AssociatedItemCount : 0 ContactCount : 0 CreationTime : 2/4/1999 12:18:07 PM DeletedItemCount : 0 EntryId : 000000001A447390AA6611CD9BC800AA002FC45A0300F020D914C926D011A40900C04FD7BD87FFFFFFFF00030000 ExpiryTime : 9/27/2010 1:00:00 AM FolderPath : Internet Newsgroups IsDeletePending : True ItemCount : 0 LastAccessTime : 10/4/2010 8:22:52 AM LastModificationTime : 10/3/2010 3:21:06 PM Name : Internet Newsgroups OwnerCount : 0 TotalAssociatedItemSize : 0B TotalDeletedItemSize : 0B TotalItemSize : 0B ServerName : EX2K7 StorageGroupName : Public Folder Storage DatabaseName : Public Folder Database Identity : 000000001A447390AA6611CD9BC800AA002FC45A0300F020D914C926D011A40900C04FD7BD87FFFFFFFF00030000 IsValid : True OriginatingServer : EX2K7.company.com Does anyone have any advice or direction on how to solve this issue? Any help will be met with the utmost gratitude. Thanks in advance.
October 5th, 2010 11:01am

Okay, it's normal to get an error trying to remove \NON_IPM_SUBTREE or \NON_IPM_SUBTREE\EFORMS REGISTRY because neither are folders; they're just placeholders and can't be removed. But they don't have replicas, so there's no reason to want to remove them. Run this shell command: Get-PublicFolderStatistics -Server EX2K7 That will tell you what replicas exist on the server. If these replicas are system folders (under root \NON_IPM_SUBTREE\) under SCHEDULE+ FREE BUSY, OFFLINE ADDRESS BOOK, or EFORMS REGISTRY (if you use them) then you want to make sure you have replicas on the Exchange 2003 server and you remove the replicas from the Exchange 2007 server. If these replicas are the server-specific like StoreEvents, OWAScratchPad, schema-root, exchangeV1, globalevents or internal, basically any system folders other than the ones under the three folders above, then you can simply delete them. If these replicas are public folders (under root \), then you want to make sure you have replicas on the Exchange 2003 server and you remove the replicas from the Exchange 2007 server. You can use the MoveAllReplicas.ps1 script, or you can move them manually: Set-PublicFolder \RootFolder\BranchFolder\LeafFolder -Replicas EX2K3 You can remove public folders using the Remove-PublicFolder cmdlet. Sometimes there are multiple folders with the same name, so deleting the right one is problematic. You can use: Get-PublicFolder -Identity \NON_IPM_SUBTREE -Recurse | Format-List Identity,Replicas,EntryId to get a list of all system folders, their replica locations, and an EntryId that you can use with Remove-PublicFolder to delete the right folder. Sorry that I don't have an easier answer. Hope this helps. Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
October 5th, 2010 11:24am

As I know, you should be able to remove the public folder database from exchange 2007 server as soon as there’s no replica (instance) on it. After moved all replicas, do you still get the same error information if you try to remove the database with the cmdlet above?James Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
October 5th, 2010 9:43pm

His post showed that he had some replicas remaining.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
October 5th, 2010 11:28pm

Then, please try to remove the replica from the database with “ErrorAction:SilentlyContinue”, also ensure that the “-Server” parameter points to exchange 2007 server, otherwise, the cmdlet will remove the public folder data from all servers in your organization Remove Multiple Public Folders from a Public Folder Database James Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
October 6th, 2010 10:11pm

How's the issue currently?James Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
October 12th, 2010 9:49pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics