Here's a little procedure documented in How to Delete Multiple Public Folders from Your Organization that takes care of this.
Remove all Public Folder replicas from the server using the following command:Get-PublicFolder -Server "SERVER NAME" "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server "SERVER NAME" -Recurse -ErrorAction:SilentlyContinue
Next, remove all System Folders using the following command:Get-PublicFolder -Server "SERVER NAME" "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server "SERVER NAME" -Recurse -ErrorAction:SilentlyContinue
To verify all Public Folders have been deleted:Get-PublicFolderStatistics -Server "SERVER NAME" | fl
At times the replica clean-up may take a little while. If you still see replicas after running this command, run it again in 10-15 minutes.Note: This procedure should be performed only if you're removing the last (or only) Public Folder Store from an Exchange Organization. If there are other servers in the Organization that also host Public Folders, using this procedure removes the folders from the Public Folder hierarchy.
Removing Public Folder replicas using MoveAllReplicas.ps1
If Public Folders are hosted on more than one server, use the MoveAllReplicas.ps1 script to remove replicas from a server, as illustrated in KB 927464: How to remove Exchange 2007 from a computer.
The MoveAllReplicas.ps1 script resides in the Scripts folder in the path where Exchange Server 2007 is installed. It's an easy-to-use script that takes 2 parameters— the source and target server names. The source server is the server you're trying to remove the Public Folder replicas from. The target server can be any other server in the Organization that hosts Public Folders— presumably a server that's in the same location to avoid replicating PFs over WAN links.
MoveAllReplicas.ps1 -Server "SOURCE SERVER NAME" –NewServer "TARGET SERVER NAME"
Once this is done, it may take some time for Public Folders to replicate to the target server, and for these to be removed from the source server. To verify there are no replicas on the source server, you can use the Get-PublicFolderStatistics command.Labels: Administration, Exchange Server 2007, Media Center

Exchangepedia Blog is read by visitors from all 50 US States and 150 countries world-wide


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home