Uninstalling Exchange 2007
The local computer is responsible for generating the offline address book
To move offline address book generation using Exchange Management Console
- Open the Exchange Management Console.
- Expand Microsoft Exchange, expand Organization Configuration, and then select Mailbox.
- In the results pane, click the Offline Address Book tab.
- On the Offline Address Book tab, select the offline address book you want to move. In the action pane, click Move.
- After the Move Offline Address Book Wizard appears, select the new server to host the offline address book generation by using the Browse button and then click Move.
- To close the wizard, click Finish.
To use the Exchange Management Shell to move offline address book generation
Run the following command:
Move-OfflineAddressBook -Identity <OfflineAddressBookIdParameter> -Server <ServerIdParameter> [-DomainController <String>]
To use the Exchange Management Shell to move all public folder content in a database to a new public folder database
Remove a public folder database from a Mailbox server
Step 1: Delete unnecessary public folders
Step 2: Move the public folder replicas to another server
Step 3: Associate mailbox databases with another default public folder database
Step 4: Remove the public folder database
Note: If you successfully perform Step 1 through Step 4 and you receive an error message stating that the public folder database can’t be removed because it contains replicas, you may need to wait several hours for public folder replication to finish.
Verify that all public folders have been removed by running
To identify the public folder databases that are associated with all mailbox databases, run the following command
Get-MailboxDatabase | ft Name,PublicFolderDatabase
To move all public folder content from Server01 to Server02, run the following command:
MoveAllReplicas.ps1 -Server Server01 -NewServer Server02
To move the public folder called Legal and all of the folders within that hierarchy from Server01 to Server02, run the following command:
ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder “\Legal” -ServerToAdd Server02 -ServerToRemove Server01
If you Still get Error about Public Folder Replication then check to make sure you have a backup of Public Folder Database then follow the steps below
User Public Folders:
Get-PublicFolder -Server <server containing the public folder database> “\” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <server containing the public folder database> -Recurse -ErrorAction:SilentlyContinue
System Public Folders:
Get-PublicFolder -Server <server containing the public folder database> “\Non_Ipm_Subtree” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <server containing the public folder database> -Recurse -ErrorAction:SilentlyContinue
Final Couple of Error on Removing Exchange
Error: Object is read only because it was created by a future version of Exchange
This will mean you are unable to uninstall exchange 2007
An easier way I found was to open up PowerShell on your Exchange 2010 Server and type
Remove-PublicFolderDatabase -Identity “<SERVER NAME>\First Storage Group\Public Folder Database”
(Important: Modify the Storage Group & Database name to your environment )
When you try to uninstall Exchange Server 2007, the uninstall operation stops responding when it runs the task to remove Exchange files
This problem occurs because a custom action invokes the Powershell.exe process but never executes the action.
To resolve this problem, open Task Manager, and then end the Powershell.exe process. The Powershell.exe process will restart immediately and then complete the uninstall operation.