Exchange Server Forums
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
Clean up public folder aliases for migration
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
Clean up public folder aliases for migration - 22.Apr.2015 3:55:00 PM
|
|
|
hywaydave
Posts: 122
Joined: 9.Mar.2006
Status: offline
|
I'm trying to migrate my Exchange 2007 public folders to 2013 but keep running into issues with PF aliases with invalid characters. I found this modified script to work with public folders: http://www.johanveldhuis.nl/tools/scripts/fix-aliasv20.ps1 While it does a good job at cleaning up a lot of public folder aliases, I seem to be running into issues with aliases that contain words in parenthesis. Any help would be much appreciated as my company has 74,000 public folders so this isn't something I can clean up manually. Found Object to Fix: XXX (229/829) (Recovered) New Alias of Object: XXX_(229/829)_(Recovered) The term ‘Recovered’ is not recognized as the name of a cmdlet, function, scrip t file, or operable program. Check the spelling of the name, or if a path was i ncluded, verify that the path is correct and try again. At line:1 char:117 + set-MailPublicFolder ‘neirelocation.com/Microsoft Exchange System Objects/XXX (829)’ -alias XXX_(229/829)_(Recovered <<<< ) + CategoryInfo : ObjectNotFound: (Recovered:String) [], CommandNo tFoundException + FullyQualifiedErrorId : CommandNotFoundException Found Object to Fix: XYZ (119) New Alias of Object: XYZ_(119) Set-MailPublicFolder : A positional parameter cannot be found that accepts argu ment '119'. At line:1 char:21 + set-MailPublicFolder <<<< 'neirelocation.com/Microsoft Exchange System Objec ts/XYZ (119) 17819844' -alias XYZ_(119) + CategoryInfo : InvalidArgument: (:) [Set-MailPublicFolder], Par ameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Exchange.M anagement.MapiTasks.SetMailPublicFolder
|
|
|
RE: Clean up public folder aliases for migration - 22.Apr.2015 4:43:44 PM
|
|
|
hywaydave
Posts: 122
Joined: 9.Mar.2006
Status: offline
|
I found this script on this site (http://www.vspbreda.nl/nl/2013/12/exchange-2010-to-exchange-2013-public-folder-migration/) Check for ‘ (‘ and ‘)’ $pfs= Get-publicfolder “\” -ResultSize Unlimited -recurse | where {$_.MailEnabled -eq “True”} | Get-MailPublicFolder | where {$_.alias -like ‘*(*’ -or $_.alias -like ‘*)*’} write-host $pfs foreach($pf in $pfs) {set-mailpublicfolder $pf.Identity -Alias:($pf.alias -replace ‘\(|\)’,”)} But that didn't seem to work either. [PS] K:\>$pfs= Get-publicfolder "\" -ResultSize Unlimited -recurse | where {$_.M ailEnabled -eq "True"} | Get-MailPublicFolder | where {$_.alias -like `*(*' -or $_.alias -like `*)*'} You must provide a value expression on the right-hand side of the '-like' opera tor. At line:1 char:141 + $pfs= Get-publicfolder "\" -ResultSize Unlimited -recurse | where {$_.MailEna bled -eq "True"} | Get-MailPublicFolder | where {$_.alias -like <<<< `*(*' -or $_.alias -like `*)*'} + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx ception + FullyQualifiedErrorId : ExpectedValueExpression
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|