See:
https://gsexdev.blogspot.com/2016/05/ews-basics-create-folder-in-mailbox-or.html
https://github.com/gscales/Powershell-Scripts/blob/master/CreateFolder.ps1
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
With Exchange 2010 going away, so goes Managed Folders that we used to automate mailbox folder creation in newly created mailboxes. Is there a way with PowerShell to create a top-level mailbox folder called "Managed Folders"? Our 3rd-party archiving product manages all retention based on a set of default folders that determine retention. Our folders are our tags, so we don't want to use Tags via Exchange whatsoever. All we need is to ensure we have "Managed Folders" at the same level in the mailbox as Inbox etc. and then create the subfolders underneath it so that all the folders exist where they are supposed to and are spelled correctly.
@davrion
Hi,
To my knowledge, it can done by using the Exchange Web Services Managed API.
There is an official document about it: Work with folders by using EWS in Exchange
And here are some scripts from technet for your reference:
Create a Custom root Folder in all the Mailboxes (Bulk) in Exchange 2010
Create a Custom root Folder in all the Mailboxes (Bulk) in Exchange 2013
Create folder(s) in user(s) mailboxes using EWS
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.