Exchange 2010 to 2013 public folder migration

Marinertek used Ask the Experts™
I am having issues in a large organization with public folder migration. The issue is that they fail to migrate because of spaces in the "mailnickname" attribute. There are over 5000 folders total so manually removing all the spaces in the names is out of the question. I attempted to use a script to enumerate all of the issues to replace the invalid characters and it fails because of the output is too large. Anyone have some other method to manage the "mailnickname"?

[PS] C:\PFmigration>$pfs= Get-publicfolder "\" -recurse | where {$_.MailEnabled -eq "True"} | Get-MailPublicFolder | whe
re {$_.alias -like `* *' -or $_.alias -like `*,*'}
Sending data to a remote command failed with the following error message: The WinRM client sent a request to the remote
 WS-Management service and got a response saying the request was too large. For more information, see the about_Remote_
Troubleshooting Help topic.
    + CategoryInfo          : OperationStopped: (System.Manageme...pressionSyncJob:PSInvokeExpressionSyncJob) [], PSRe
    + FullyQualifiedErrorId : JobFailure

Invoke-Command : Cannot write input as there are no more running pipelines
At C:\Users\exch13\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\mail.xxxxxxxx.local\
m1:15587 char:29
+             $scriptCmd = { & <<<<  $script:InvokeCommand `
    + CategoryInfo          : InvalidOperation: (:) [Invoke-Command], PSInvalidOperationException
    + FullyQualifiedErrorId : NoMoreInputWrite,Microsoft.PowerShell.Commands.InvokeCommandCommand
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

E ATech Lead

Public Folders Migration from Exchange 2007/2010 to Exchange 2013:

Step-by-Step Guide to Move Public Folders to Exchange 2013:

You may get help from this earlier thread.
ah .... beauty of Public Folders ...

you could do the easy way - i guess -
get-mailpublicfolder - then you get an overview how many fails for you. Had a customer with 300GB and and 10s of 1000s of public folders.

however, they had "only" 50 - 60 PFs with failed alias. Enter ADSI - fix

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