Not able to move Public folders to new server
I have been running the 32 bit version of Exchange 2007 for a few weeks to test and Eval, we recently put a 64 bit server together and did a clean install of Windows Server 2003 and the 64 bit version of Exchange 2007. I had no issues moving the mailboxes to the permanent server and tested the ability to send and receive from the server with the rules and transports. I continued on and tried to move the public folders over and when I run the script MoveAllReplicas.ps1 I get the following error. I ran start-transcript to capture the error, bu am at a loss cause Im unable to find anything that tells me how to correct for this, has anyone run in to this and found a fix for it. [PS] C:\Documents and Settings\Administrator>MoveAllReplicas.ps1 -Server Server1 -NewServer server2 The term '.\ReplaceReplicaOnPFRecursive.ps1' is not recognized as a cmdlet, fun ction, operable program, or script file. Verify the term and try again. At C:\Program Files\Microsoft\Exchange Server\bin\MoveAllReplicas.ps1:136 char: 34 .\ReplaceReplicaOnPFRecursive.ps1 <<<< -Server $ActionServer -TopPublicFolde r \ -ServerToAdd $NewServer -ServerToRemove $Server The term '.\ReplaceReplicaOnPFRecursive.ps1' is not recognized as a cmdlet, fun ction, operable program, or script file. Verify the term and try again. At C:\Program Files\Microsoft\Exchange Server\bin\MoveAllReplicas.ps1:137 char: 34 .\ReplaceReplicaOnPFRecursive.ps1 <<<< -Server $ActionServer -TopPublicFolde r \NON_IPM_SUBTREE -ServerToAdd $NewServer -ServerToRemove $Server [PS] C:\Documents and Settings\Administrator>
October 10th, 2007 10:07pm

I have the same problem... anyone ?
Free Windows Admin Tool Kit Click here and download it now
October 12th, 2007 12:41pm

You need to run this command from the Exchange Management Shell and not From within Powershell Go to start - Exchange 2007 and start Exchange Management shell and rerun the script Deli
October 12th, 2007 12:55pm

I am running it fromthe Exchane Management Shell
Free Windows Admin Tool Kit Click here and download it now
October 12th, 2007 1:16pm

Did you change your directory to the Exchange Scripts folder? CD C:\Program Files\Microsoft\Exchange Server\Scripts in the Exchange Management Console Start the script from there Deli
October 12th, 2007 1:36pm

That was the case I had not changed over to the correct path. Thanks for the help
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2007 10:11pm

I am tryin to move my publicdb's as well, for the purpose of reinstalling the mailbox server role. I have an Exchange 2007 32 bit VM setup and have successfully moved the mailboxes, but cannot move the public db I get this error Get-ExchangeServer : The operation could not be performed because object '-Edge-Srv' could not be found on domain controller 'exchange-srv.utek.local'.At C:\Program Files\Microsoft\Exchange Server\Scripts\MoveAllReplicas.ps1:38 char:29+ $s2 = Get-ExchangeServer <<<< $NewServerGet-PublicFolderDatabase : Command execution stopped because the shell variable"ErrorActionPreference" is set to Stop: Exchange server "-Edge-Srv" was not found. Please make sure you have typed it correctly.At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursive.ps1:128 char:34+ $dbNew = get-publicfolderdatabase <<<< -server $ServerToAdd -erroraction Stop any help would be greatly appreciated Please Disregard this post as I just found out why it was not working(duh) I added a hyphen to the New server name, my bad.
December 20th, 2007 5:19pm

Hello This problemmay becaused by you not having read permission to the scripts directory (c:\program files\microsoft\exchange\scripts). In Windows Server 2008 just browse to the directory in Windows Explorer and Windows will ask you if you want to modify permissions on the folder to gain access. In 2003 right-click the folder and choose properties and then add yourself under the security permissions and give yourself at least read access to the folder You will then be able to run the cmdlets. Robin
Free Windows Admin Tool Kit Click here and download it now
December 26th, 2007 2:26pm

Or, right click on the "Exchange Management Shell" icon and choose "run as adminstrator" then the script can run with no issues.
February 1st, 2010 5:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics