Share via


Exchange mailbox folder rename

Question

Wednesday, October 23, 2019 6:24 PM

Looking for suggestions to an issue we currently facing.

A process, outside of Exchange, appended an @ symbol to 10's of thousands of folders to 100's of mailboxes.  

Given the sheer number of folders that were affected, we must programmatically remove these @ symbols.

I can easily find these folders using Exchange cmdlets get-mailbox | get-mailboxfolderstatistics then filtering for the symbol.

However, the issue I'm having is renaming these folders back to it's original state minus the @.

For example,

"Folder1@"  We need to rename it back to just "Folder1"

I've explored using the EWS Managed API but can't seem to get the syntax right. 

https://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/

I'm also open to using a Macro like the following but this doesn't seem to work either.

https://www.datanumen.com/blogs/batch-find-replace-specific-words-outlook-folder-names/

Any guidance would be greatly appreciated.

All replies (2)

Thursday, October 24, 2019 2:58 AM

Hi,

Based on my knowledge, no existing Exchange commands support to rename mailbox folder names. I did some research and found this script Rename folder example in EWS. Hope you can get some enlightenment from it.

Additionally, if you want to get more information about using the EWS Managed API, you can go to Exchange Server > Exchange Server Development for more professional suggestions about the script.

Regards,

Lydia Zhou

Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, October 29, 2019 8:05 AM

You are welcomed to post here, if you have any updates to share with us. Hope your issue can be solved soon.

Regards,

Lydia Zhou

Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].