Enable E-Mail moderation in Office 365 with AD Connect

To enable E-Mail moderation in Office 365 with AD Connect is achieved easily once you have the exchange schema installed. You can find a guide on how to do this here.
To enable moderation on the distribution group set the below attribute to TRUE

To set the moderator add the dn of the user into the below attribute

You can easily get the dn of the user by copy/paste here

To add a user to be able to bypass moderation add their user dn into the below

You can also set moderation flags to notify senders if they are being moderated
- Notify all senders when their messages aren’t approved. -msExchModerationFlags = 6
- Notify senders in your organization when their messages aren’t approved. – msExchModerationFlags = 2
- Don’t notify anyone when a message isn’t approved. – msExchModerationFlags = 0