Remove the Public Folder Databases

Platí pro: Windows SBS 2008

Before you can uninstall Exchange Server, you must remove the Public Folder Databases. To remove the Public Folder Databases, complete the following procedure.

To remove the Public Folder Databases

  1. Click Start, click All Programs, click Microsoft Exchange Server 2007, right-click Exchange Management Shell, and then click Run as administrator.

  2. At the command prompt of the Exchange Management Shell, type the following command:

    Get-PublicFolder -Server <ServerName> "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <ServerName>  -Recurse -ErrorAction:SilentlyContinue
    

    Replace <ServerName> with the name of your server.

  3. At the command prompt of the Exchange Management Shell, type the following command:

    Get-PublicFolder -Server <ServerName> "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <ServerName>  -Recurse -ErrorAction:SilentlyContinue
    

    Replace <ServerName> with the name of your server.