Author Posts

April 6, 2017 at 11:57 am

I am looking for assistance to do the following:

I am new to PowerShell and would like to create a new custom root Folder in Outlook for all existing and new staff going forward. We have a hybrid environment with Exchange Server 2013 and our Office 365 tenancy. I see a script here but am unclear if this would accomplish the objective. Any assistance would be appreciated.


April 10, 2017 at 2:18 am

I have not tested that particular script, but it looks pretty close to one I've used in the past to create custom folders in O365. We did it as part of onboarding users. You will need to change the $FolderNameĀ variable along the $user and $pass variables. The script will require you to save your password in the script in plain text, which is generally a no-no, but as I recall, there isn't a much better way of doing it.

If you wanted to give it a try, I say create a shared mailbox and change

$a = get-mailbox

to a single mailbox

$a = get-mailbox "Shared Mailbox"

and give it a try. You'll have to do some more editing if you wanted to import a list of users to the script or find recently created users to create the folders to their mailbox.