Compare Email Policy – Exchange

Sharing a Script that you can change according to your requirements. We have used this to find out user mailboxes that doesn’t comply with the email policy. For example: FirstName.LastName@domain.com In first part of the script define the domain & get mailboxes with employeeid (Example if in your env if you have stored Empid in Cutomattribute12)…