I'd like to set up a business rule to automatically enable the Office 365 archiving feature for newly created users.
I've found the PowerShell code to do this, but I'm not sure how to get it set up in Adaxes.
I've already got my business rules #1) to create the Office 365 mailbox in Office 365 and #2 activate their license (we have E3 licenses).
So I'm assuming I'll need to add the following command as a PowerShell script for archiving:
Enable-Mailbox -Identity %mail% -Archive
Here's the command for setting the retention policy:
Set-Mailbox %mail% -RetentionPolicy <name of policy>
Is there more that I need to do to get it to connect to our Office 365 account or does it know to use that automatically?