Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 971
  • Last Modified:

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
0
Chad Franks
Asked:
Chad Franks
  • 4
  • 3
1 Solution
 
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
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now