I have two servers running XCH2007. One of them will be decommissioned. I need to remove Exchange 2007 from it. I have already uninstalled client and hub transport roles successfully. I need to uninstall Mailbox role but, of course, I run into the Public Folders replicas problems. Both servers had identical replicas. I then applied the removeallreplicas.ps1 on the server that is to be decommissioned, but only some were removed. I read Anderson Patricio's article about Built In Scripts part1. I found there the command ./removereplicafromPFrecursive.ps1. I am not to familiar with the right syntax for it. I have included the screen shot of the replicas that are listed after I run this command; get-publicfolderstatistics I want to remove those. What should be the right script and syntax to use? Thank you so much for your help.
[PS] C:\Users\pciadmin\Desktop>get-publicfolderstatistics Name ItemCount LastAccessTime ---- --------- -------------- Corpac 1 2/8/2009 4:11:28 AM Dapix 2 2/8/2009 4:11:29 AM Fax Servers 2 2/8/2009 4:11:28 AM G&G Switches and ports 2 2/8/2009 4:11:29 AM microsoft 0 2/6/2009 3:37:27 PM OAB Version 3a 11 2/8/2009 4:11:29 AM OAB Version 4 12 2/8/2009 4:11:29 AM PCI Contacts 85 2/8/2009 4:11:29 AM schema-root 0 2/6/2009 3:19:47 PM Service-Request 6 2/8/2009 9:49:08 AM SFMR 1 2/8/2009 4:11:29 AM StoreEvents{13E1FDFB-519A-4EEE-A769-5AB1 0 2/6/2009 3:19:47 PM 82FF2578} StoreEvents{25B08935-717F-42D1-BB22-74F3 0 2/6/2009 3:19:47 PM 8BA4CE2C} StoreEvents{4E84BF2A-F0B8-4C03-ABC5-75FA 0 2/6/2009 3:19:47 PM DA786A01} Warehouse 1 2/8/2009 4:11:28 AM Watchguard 0 2/6/2009 3:37:16 PM StoreEvents{22D04C75-DF46-4B56-AE8F-4C83 0 2/6/2009 3:19:47 PM 2D13A3A9} StoreEvents{3CDBB532-956D-44A3-80C2-64E6 0 2/6/2009 3:19:47 PM 51FF6E58} StoreEvents{47D54A7B-D802-4FED-901A-9A89 0 2/6/2009 3:19:47 PM AC51F7BB} StoreEvents{EC1411E2-AABC-4148-B749-31B0 0 2/6/2009 3:19:47 PM 3D161700}
ValidateParams : Missing parameter: The -TopPublicFolder parameter is required. Please pass in a valid Public Folder path, name, or entryID. At C:\Program Files\Microsoft\Exchange Server\Scripts\RemoveReplicaFromPFRecurs ive.ps1:113 char:32 + $ifValidParams = ValidateParams; <<<< [PS] C:\Program Files\Microsoft\Exchange Server\Scripts>
You may use PFDAVADMIN which is a graphical tool to manage public folders.
If you choose to go with PFDAVAdmin, please remember that it needs .NET Framework 1.1 and this is usually not installed on Exchange 2007 boxes. Whatever you do, do NOT install .NET 1.1 onto your Exchange 2007 box since it will brake som .NET 2.0 registrations.
Install .NET 1.1 Framework onto, letīs say your Admin Computer, and execute PFDAVAdmin from there.
_____________________________
Jesper Bernle | Microsoft Community Contributor 2011 Awardee