I am having trouble running the RemoveReplicaFromPFRecursive.ps1 to remove a replica from Exchange 2010 Public folders

I am migrating a customer from Exchange 2007 to Exchange 2010.  I have completed replicating all the Public folders to the new server and now I am trying to remove the old replica from all the public folders.  I know I can run the Powershell script to do this, but  I am having issues doing so.  Here is the command I run:

./RemoveReplicaFromPFRecursive.ps1 –Server CLOUD008-VM03-Exchange –TopPublicFolder \\ –ServerToRemove RTEX1

I am having trouble with the TopPublicFolder switch.  What do I put here?  I have tried everything...

Thanks
LVL 6
Chad FranksSenior System EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SubsunCommented:
What about
–TopPublicFolder \

Open in new window

If it fails please post the error..
0
Chad FranksSenior System EngineerAuthor Commented:
Ok, that worked somewhat.  It doesn't look like it did any sub-folders though.  Please see the picture I attached.
Error.jpg
0
SubsunCommented:
Does the public folders specified in error have replica on server RTEX1?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Chad FranksSenior System EngineerAuthor Commented:
Yes, do I need to remove that first?
0
SubsunCommented:
Ideally the script should remove it.. Does that folder have replicas on servers other than server RTEX1?

I hope the account which you use to run the script have permission to manage public folder replicas.. :-)
0
Chad FranksSenior System EngineerAuthor Commented:
I have 2 servers only, Old server and new server.  Both are replicas of eachother
0
SubsunCommented:
I am talking to the folders shown in error. My guess is that the folders showing error may not have a replica added.

Run the following command against the folder which appears in error and make sure it shows both the servers as Replicas..
Get-publicfolder "PF path in Error" -Server "ServerName" | Select Replicas

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.