Link to home
Start Free TrialLog in
Avatar of Jon Lamb
Jon LambFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Exchange 2010 to 2013 Public Folder Migration - MaxEnvelopeSize error on migration request

I’m attempting to move my Exchange 2010 Public Folders over to our new Exchange 2013 server.

I’m following these guides … https://supertekboy.com/2014/10/13/2013-public-folder-migration-made-easy/ and also https://practical365.com/exchange-server/exchange-server-2010-2013-migration-moving-public-folders/

I’m running into this error on the Exchange 2013 management shell when I start the migration request …

[PS] C:\pfmigration>New-PublicFolderMigrationRequest -SourceDatabase (Get-PublicFolderDatabase -Server server) -CSVData
(Get-Content C:\PFMigration\FolderToMailbox.csv -Encoding Byte) -AcceptLargeDataLoss -BadItemLimit 100

Starting a command on the remote server failed with the following error message : The WinRM client sent a request to
the remote WS-Management service and was notified that the request size exceeded the configured MaxEnvelopeSize quota.
For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OperationStopped: (server1.mydomain.local:String) [], PSRemotingTransportExcepti
   on
    + FullyQualifiedErrorId : JobFailure
    + PSComputerName        : server1.mydomain.local

I’ve googled it and I’ve increased the MaxEnvelopeSize in the Win-RM on both servers and also in the below paths

C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\PowerShell\web.config on source server
C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\PowerShell\web.config on destination server

And restarted the servers afterwards

I’ve played about with the MaxEnvelopeSize and initially increased it to 8192 everywhere and then went up as high as 32768. Does it need to be even higher?

Can anyone tell me where I’m going wrong?
Avatar of Jian An Lim
Jian An Lim
Flag of Australia image

how big your C:\PFMigration\FolderToMailbox.csv ?

also make sure the command is working

Get-Content C:\PFMigration\FolderToMailbox.csv
Are you providing correct csv.file name, once check it.

While setting Max Envelope size Kb did you run the CMD with administrative authority ,as the configuration remained unchanged.

You could also refer http://msdn.microsoft.com/en-us/library/windows/desktop/ee309364(v=vs.85).aspx 

Delete (in the desktop machine):
HKCU\Software\Microsoft\Exchangeserver\v14\AdminTools\NodeStructureSettings delete the value NodeStructureSettings

I read this solution here: https://social.technet.microsoft.com/Forums/exchange/en-US/5858ca8e-5aa1-4a5b-bb83-4ad5dc8a3924/exchange-2010-error?forum=exchange2010

Also get help from this article for Public folder migration.

Hope this helps!
Avatar of Jon Lamb

ASKER

Jian An Lim -  the file size are below. The Get-Content C:\PFMigration\FolderToMailbox.csv  outputs the contents of the file correctly.

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        18/03/2017     09:54      25852 Create-PublicFolderMailboxesForMigration.ps1
-a---        18/03/2017     09:54       2876 CreatePublicFolderMailboxesForMigration.strings.psd1
-a---        18/03/2017     09:54      21033 Export-PublicFolderStatistics.ps1
-a---        18/03/2017     09:54       1526 Export-PublicFolderStatistics.strings.psd1
-a---        18/03/2017     10:13       5384 FolderToMailbox.csv
-a---        18/03/2017     10:03    1544252 PublicFolderStats.csv
-a---        18/03/2017     09:54      20090 PublicFolderToMailboxMapGenerator.ps1
-a---        18/03/2017     09:54       1042 PublicFolderToMailboxMapGenerator.strings.psd1

Kevin k  I've tried changing the command so it uses an incorrect file name and I get a file not found error so it looks as though its using the correct one.

The Win-RM was run as cmd with admin rights. If I check the config, its currently showing 102400 on both servers. I've also deleted that registry setting and added the maxenvelope size into the powershell web.config.

Unfortunately that last article is for 2016 as far as I can tell.

Thanks for your input all, I'd be grateful for any more things I can try.
Just an update to this. I think I will have to resort to a 3rd party chargable utility to transfer the public folders over.

Any recommendations?
SOLUTION
Avatar of Jian An Lim
Jian An Lim
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Answered, no further question from author. Please post back if you need further assistance.