During a transition from Exchange Server 2007 to Exchange Server 2010 you may encounter an error removing a Public Folder Database from the Exchange 2007 server.

The error message tells you that the “Object is read only because it was created by a future version of Exchange”.

Error “Object is Read Only” During Exchange Server 2007 Public Folder Database Removal

[PS] C:\>Remove-PublicFolderDatabase "EXCH07Public Folder Database"

Are you sure you want to perform this action?
Removing Public Folder Database "EXCH07Public Folder Database".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y
Remove-PublicFolderDatabase : Object is read only because it was created by a f
uture version of Exchange: 0.10 ( Current supported version is 0.1
At line:1 char:28
+ Remove-PublicFolderDatabase  <<<< "EXCH07Public Folder Database"

The solution is to use the Exchange Server 2010 Management Shell to remove the Public Folder Database. From an Exchange Server 2010 server run the following command to retrieve the identity of the Public Folder Database you wish to remove.

[PS] C:\>Get-PublicFolderDatabase -Server EXCH07 | fl name, identity

Name     : Public Folder Database
Identity : EXCH07Second Storage GroupPublic Folder Database

Then run this command to remove the Public Folder Database, using the Identity that was retrieved in the previous command.

[PS] C:\>Remove-PublicFolderDatabase "EXCH07Second Storage GroupPublic Folder Database"

Are you sure you want to perform this action?
Removing public folder database "EXCH07Second Storage GroupPublic Folder Database".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y
WARNING: The specified database has been removed. You must remove the database file located in E:DataSG2Public
Folder Database.edb from your computer manually if it exists. Specified database: Public Folder Database

The Public Folder Database is now removed from the Exchange 2007 server.

About the Author

Paul Cunningham

Paul is a former Microsoft MVP for Office Apps and Services. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server. Paul no longer writes for Practical365.com.


  1. christopher mackintosh

    Get-OrganizationConfig | Set-OrganizationConfig -PublicFolderMigrationComplete $True

    Saved me otherwise public folders are a pain in the butt when removing Exchange 2007 from Exchange 2013 only environment

  2. Dave Eckersley

    Get-OrganizationConfig | Set-OrganizationConfig -PublicFolderMigrationComplete $True

    This worked for me in exchange 2007 removal after migration to exchange 2013 when everything else failed!!


  3. David Hitchcock


    I have found a way to remove the unwanted Public Folder database in 2007 without using ADSI Edit or migrating the publicfolders.

    After you have removed all public folders and system folders using (from exch2007):-

    Get-PublicFolder -Server SERVERNAME “Non_Ipm_Subtree” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server SERVERNAME -Recurse -ErrorAction:SilentlyContinue


    Get-PublicFolder -Server SERVERNAME “” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server SERVERNAME -Recurse -ErrorAction:SilentlyContinue

    Use this command:-

    Get-OrganizationConfig | Set-OrganizationConfig -PublicFolderMigrationComplete $True

    Ignore the warning (As the name has been changed by Exchange 2013)

    Then remove the database from the exchange 2007 gui without problems 🙂

    1. John Tawney

      Thank you!!! This is the only thing that worked outside of reverting to using ADSIEDIT (which I did NOT want to have to use unless I had to).

    2. Steven L.


      Thank you!! This worked for us, too. We are currently coexisting in a 2007 and 2013 environment.

      We tried to use ADSIEdit, but the PF was not in there…

    3. Jonathan Raper

      worked for me too. thank you!


  4. Alan

    I can’t really recall exactly what I did I am afraid. I know I had a really bad week trying to get everything across but in the end I managed it and have since taken the old Exchange 2007 server off-line.

    Maybe I never worked out how to remove it from 2007 and just left it until I took the server off-line?

    1. Alan

      I recall using ADSIedit for something too, but I think I just killed the server and then used ADSIedit to remove the server from the domain…

  5. Mike

    Alan, did you manage to solve your issue? I’ve run into the same: Migrated Public Folders from Exch2007SP3RU10 to Exch2013CU1, and now I can’t remove the Public Folder Database from the Exch2007.

    Running the command on the new server is not possible as Remove-PublicFolderDatabase is not available on Ecxh2013.

    1. Tyler

      Mike, I’ve got the same issue. You get anywhere with it?

      1. Mike

        No, not yet. I’m not sure though if it is really necessary for us as we’re just trying to get rid of that Exch2007, and I’m guessing the uninstallation will work eventhough the public folder database has not been removed.

        1. Tyler

          That’s all I’m trying as well, but it didn’t uninstall for me because there is a PF DB.

        2. Mike

          Darn it, at what stage are you getting that error? I’m afraid the only way around this is via ADSIedit, although that feels awkward…

  6. Alan Ingram

    OK, its been a while since this article but Exchange 2013 throws a spanner in the works in that whilst it causes exactly the same error, because it no longer has public folder databases (it just uses the normal mailbox database instead) the Remove-PublicFolderDatabase command no longer exists?!


  7. William Benson

    You’ve help me out a lot over the years Paul thanks.

  8. Todd

    Worked perfectly! Thanks.

  9. Paulk

    Worked for me also, strange thing is that even if you check the ExchangeVersion on the Public Folder Database is 0.1! where does it find that the version is 0.10 ?!?!? 🙂

  10. Paul

    Worked great! Thanks!

Leave a Reply