Error when running AddReplicaToPFRecursi e.ps1 script

MapleLife
MapleLife used Ask the Experts™
on
I'm in the process of transitioning from exchange 2003 to 2007. I have the 2007 environment installed and have a test mailbox moved over. This mailbox is getting errors that is is not downloading the OAB. I have troubleshooted down to the replica level. I was advised to run the AddReplicaToPFRecursie.ps1 script and when i do i get the following error.


I have made sure the account I'm logged on as is a member of the org admins in AD for exchange and have run the EMS as administrator

[PS] C:\Windows\system32>CD "C:\Program Files\Microsoft\Exchange Server\Scripts

[PS] C:\Program Files\Microsoft\Exchange Server\Scripts>.\AddReplicaToPFRecursi
e.ps1 -TopPublicFolder "\" -ServerToAdd lexexch1
Set-PublicFolder : Modification of the root folder '\' is not allowed.
At C:\Program Files\Microsoft\Exchange Server\Scripts\AddReplicaToPFRecursive.p
s1:126 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-PublicFolder], Modi
   ficationDisallowedException
    + FullyQualifiedErrorId : 3CD6A753,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

[PS] C:\Program Files\Microsoft\Exchange Server\Scripts> .\AddReplicaToPFRecurs
ve.ps1 -TopPublicFolder "\NON_IPM_SUBTREE" -ServerToAdd lexexch1
Set-PublicFolder : Modification of the '\NON_IPM_SUBTREE' folder is not allowed
.
At C:\Program Files\Microsoft\Exchange Server\Scripts\AddReplicaToPFRecursive.p
s1:126 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-PublicFolder], Modi
   ficationDisallowedException
    + FullyQualifiedErrorId : 7596D94C,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : Cannot save the object '\NON_IPM_SUBTREE\EFORMS REGISTRY'. P
lease make sure that you specified the correct Identity and that you have the n
ecessary permissions to save it.
At C:\Program Files\Microsoft\Exchange Server\Scripts\AddReplicaToPFRecursive.p
s1:126 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-PublicFolder], Mapi
   ObjectNotFoundException
    + FullyQualifiedErrorId : 99FCCC40,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : Cannot save the object '\NON_IPM_SUBTREE\OFFLINE ADDRESS BOO
K'. Please make sure that you specified the correct Identity and that you have
the necessary permissions to save it.
At C:\Program Files\Microsoft\Exchange Server\Scripts\AddReplicaToPFRecursive.p
s1:126 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-PublicFolder], Mapi
   ObjectNotFoundException
    + FullyQualifiedErrorId : 91FAC375,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : Cannot save the object '\NON_IPM_SUBTREE\SCHEDULE+ FREE BUSY
'. Please make sure that you specified the correct Identity and that you have t
he necessary permissions to save it.
At C:\Program Files\Microsoft\Exchange Server\Scripts\AddReplicaToPFRecursive.p
s1:126 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-PublicFolder], Mapi
   ObjectNotFoundException
    + FullyQualifiedErrorId : 8E42762C,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
What I usually do is create a mail-enabled security group in AD and add my admin user account (must have a mailbox) to it.  Typically I call this group PFOwners.

I then use PFDAVAdmin to add the PFOwners group as an owner on all public folders on the source server.  I usually set the security manually on the system folders as there are a lot more there than what actually comes over.

Once this is complete, I usually never have any issues transitioining public folders.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial