We help IT Professionals succeed at work.

Exchange 2010 Public Folders

gueraf
gueraf asked
on
I have 2 Exchange 2010 Servers
Is the public folder replicated automatically between the 2 servers or do I need to setup the replication?
Comment
Watch Question

Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
Replication for Public Folders hasn't changed.  Not like replication of mailboxes through a DAG configuration.  Log into your current Public Folders server and add the other servers either through script or manually.

Author

Commented:
Hi Morasiva,

How do I do this using the console?

Author

Commented:

Commented:
Good guide for Configure Public Folder Replication.you can follow that.

Author

Commented:
I think I need to create another public folder database on the my second 2010 server so I can replicate to it?
Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
That is correct.  To add the replication server in bulk use the powershell script.

\Microsoft Exchange\Scripts>.\AddReplicaToPFRecursive.ps1 -Server [thisserver] -TopPublicFolder \ -ServerToAdd [thatserver]

Author

Commented:
New at this, a bit confused.

So create public folder on the 2nd server. Then run below command on powershell??
\Microsoft Exchange\Scripts>.\AddReplicaToPFRecursive.ps1 -Server "ExchangeSource" -TopPublicFolder \ -ServerToAdd "ExchangeDist"

I'm assuming you meant that it will replicate entire public folder to 2nd server right?
Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
That is correct.  The script just automates the adding of the additional server under the Replication tab in each Public Folder properties.  Remember that replication doesn't necessarily begin immediately after you add the second server.  It'll take time to do its thing.  Even a little longer if there are lots of folders.
Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
After a day or so, you can run the following command to check how the replication is going:

Get-PublicFolderStatistics -ResultSize unlimited -Server ExchangeSource
Get-PublicFolderStatistics -ResultSize unlimited -Server ExchangeDist

Author

Commented:
I'm getting an error when I type any of below on Exchange Management Shelll:

\Microsoft Exchange\Scripts>.\AddReplicaToPFRecursive.ps1 -Server "Pegasus" -TopPublicFolder \ -ServerToAdd "Phoenix"

AddReplicaToPFRecursive.ps1 -Server "Pegasus" -TopPublicFolder \ -ServerToAdd "Phoenix"

What am I doing wrong?
Am I supposed to change path to the location of the script first? If so how do I do that?
Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
What is the error?

Author

Commented:
The term '\Microsoft" is not recognized as the name of a cmdlet....

The Term 'AddReplicaToPFRecursive.ps1' is not recognized as the name of a cmdlet.....

Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
You have to navigate to the Exchange Scripts folder while in the Exchange Management Shell to run the script.  \Program Files\Microsoft Exchange\Scripts is usually where the Powershell scripts are located.

Author

Commented:
I get a positional parameter cannot be found, when I type:
SL Program Files\Microsoft\Exchange Server\V14\Scripts

I think it does not like the space between program and files. How do I get around it?

Author

Commented:
I tried the command: see attached
Not sure if it worked though space in directory location
Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
Open Exchange Management Shell
(If Exchange is installed on the C: drive)
C: hit ENTER
Cd \ hit ENTER
Cd "program files\Microsoft\Exchange Server\v14\scripts" hit ENTER
(Now type in the command)
AddReplicaToPFRecursive.ps1 -Server [thisserver] -TopPublicFolder \ -ServerToAdd [thatserver]

Author

Commented:
How do I check if it the command worked? PF Replica

Author

Commented:
I checked using the public folder management console and it's empty
DevOps Engineer
CERTIFIED EXPERT
Commented:
Sorry, should have given you the following variable at the beginning...it didn't come to mind.  Open the Exchange Management Shell and type in the following:

$ExScripts and hit ENTER.  This will give you the path of the Scripts folder.  What does it say?

Author

Commented:
Here is the result:
 result

Author

Commented:
This seem to work:
[PS] C:\>cd $exscripts
[PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>.\AddReplicaToPFRecursive.ps1 -Server "ExistingServer" -TopPublicFolder "\" -ServerToAdd "NewServer"

I just need to check if the replication actually worked.
Dan ArseneauDevOps Engineer
CERTIFIED EXPERT

Commented:
Open EMS, type in the following:

"c:\program files\Microsoft\Exchange Server\V14\scripts\AddReplicaToPFRecursive.ps1" -server pegasus -TopPublicFolder \ -ServerToAdd Phoenix

Author

Commented:
[PS] C:\>cd $exscripts
[PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>.\AddReplicaToPFRecursive.ps1 -Server "ExistingServer" -TopPublicFolder "\" -ServerToAdd "NewServer"

Above worked. I checked and the public folder is replicated.

Thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.