Can't create a public folder on Exchange 2007

Posted on 2008-10-20
Last Modified: 2012-05-05
I am in a mixed Exchange 2000/2007 environment. I was attempting to create folder replicas and move all public folders from the E2K server to the E2K7 server. For this I have used the following cmdlet:

[PS] C:\>cd $exscripts
[PS] C:\Program Files\Microsoft\Exchange Server\Scripts>.\Moveallreplicas.ps1 server<sourceserver> -newserver<destinationserver>

Then EMS gave me the follwing error report:

Get-PublicFolder : There is no existing PublicFolder that matches the following
 Identity: '\'. Please make sure that you specified the correct PublicFolder Id
entity and that you have the necessary permissions to view PublicFolder.
At line:1 char:17
+ get-publicfolder  <<<< -identity \ -Recurse -resultsize unlimited
Get-PublicFolder : There is no existing PublicFolder that matches the following
 Identity: '\NON_IPM_SUBTREE'. Please make sure that you specified the correct
PublicFolder Identity and that you have the necessary permissions to view Publi
At line:1 char:17
+ get-publicfolder  <<<< -identity \NON_IPM_SUBTREE -Recurse -resultsize unlimi

So in line of this error, I have attempted to create a new public folder manually, using the EMC Public folder in the Toolbox.

While I was attempting to do this, I was unable to manually create a public folder. Nothing worked at all.

Here is the error I am getting while attempting to create a new public folder on the E2K7 server:

Summary: 1 item(s). 0 succeeded, 1 failed.
Elapsed time: 00:00:00

There is no existing PublicFolder that matches the following Identity: '\'. Please make sure that you specified the correct PublicFolder Identity and that you have the necessary permissions to view PublicFolder.

MapiExceptionUnknownUser: Unable to make connection to the server. (hr=0x80004005, ec=1003)
Diagnostic context:
Lid: 23065   EcDoConnectEx called [length=148]
Lid: 17913   EcDoConnectEx returned [ec=0x3EB][length=56][latency=15]
Lid: 19778  
Lid: 27970   StoreEc: 0x3EB    
Lid: 17730  
Lid: 25922   StoreEc: 0x3EB    

Exchange Management Shell command attempted:
New-PublicFolder -Name 'testpublicfolder' -Path '\' -Server ''

Elapsed Time: 00:00:00

I am sure my installation of Exchange went well, used the /PrepareAD and /PrepareLegacyExchangepermissions in the setup. Did not used the /PrepareSchema. My domain controller is a Win2K8 server acting as a GC and DNS.

Any help appreciated, thank you all.
Question by:beaumier
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 12

Accepted Solution

florin_s earned 500 total points
ID: 22761771

Author Comment

ID: 22770735
Hi florin,
Thanks for your input, however I already looked at those links you provided, but with no help.

However, I beleive I can trace down the problem to 1 major issue I forgot to include during the setup preparation and perhaps you can confirm this:
On the schema master here are the options I have selected: /PrepareLegacyExchangePermissions -> done /PrepareAD -> done

then installed Excchange 2007. Even the ExBPA (best practices analyzer) found no issues with the Exchange setup

I have forgotten this one: /PrepareSchema /PrepareAllDomains (not required since I have only 1 forest and 1 domain name)

I am currently in the process of rebuilding the whole lab and restart another attempt, this time with all the options to prepare the Active Directory
LVL 12

Expert Comment

ID: 22773888

 - yes you should run the /PrepareSchema command.

  - it does not need to be run on the domain that you run /PrepareAD in, but any additional domains will need this command run. You have three command line options with this command. /PrepareDomain  Prepares the current domain /PrepareDomain:FQDN of target domain to be prepped /PrepareAllDomains  Prepares all domains in the forest.
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why


Author Comment

ID: 22799550
I have re-created my lab to test out Exchange, reinstalled everything but I am still getting the same errors. This time with all the commands (/PrepareLegacy..., /PrepareSchema, /PrepareAD, /PrepareAllDomains)

Also I am getting Event #3113 Source: MSExchangeIS Public Store

Description        There was a problem retrieving the list of public MDBs associated with the TLH with GUID "<guid>". The entry "<object>" was not found in the directory. The item may have been deleted. This problem may resolve itself after directory replication and regular directory maintenence completes.

And to top it off, I am unable to perfom a "move mailbox" between the 2 servers. I am geting errors as well.

In my lab environment those are the VM I have (those VM are identical snapshots taken from my real production servers)
-Windows 2008 domain controller, Global catalog & DNS server
-Exchange 2000 SP3
-Exchange 2007 SP1

Should I include my Windows 2000 domain controller as well in the lab environment?

LVL 12

Expert Comment

ID: 22799970

Author Comment

ID: 22813629
Looks like I have found my problem. It was a permission issue.
Somehow, in Active Directory Users & Computers, in the Users container, there is a group called "Exchange Domain Servers``. The group contained the E2K server, but not the E2K7 server, so I added the server manually into that group and rebooted the E2K7 server.

I am now able to perform a move mailbox operation between the 2 servers and create a new public folder on the E2K7 server.

As for moving public folders from the E2K to the E2K7 folder I will have to investigate some more. There is a script that seems to be working (moveallreplicas.ps1) but needs further testing.

Thanks for your inputs.

Author Comment

ID: 22831493
After reading a few posts from experts regarding public folder replication from Exchange 2000 to Exchange 2007, I finally found solutions from replicating issues between the 2 servers:
-Removed the smart host under SMTP virtual server, the smart host was blocking replication traffic. Also looked for an antivirus software that would block SMTP replication. Restarted the SMTP service afterwards. Used Message Tracking to see replication traffic from the Exchange 2000 box.

-Also created a second Routing group on the Exchange 2000 server identical to the one created by the E2K7 wizard, for some reasons after creating this second routing group, all of the sudden replication began almost instantly between the 2 servers.

-Used moveallreplicas.ps1 script on the EMS (E2K7 server) and cmdlet Get-PublicFolderStatistics, verified item count on both the Management Shell and ESM on the E2K server.

All is well.
Thanks for all your inputs

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange, owa 4 49
Multiple Calendars on iOS devices? 9 45
office 365 5 45
Powershell - getting input from CSV File 9 24
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question