When configuring write-back to Active Directory for AAD Connect and Exchange Hybrid, it is sometimes necessary, when a 3rd party is involved in delegating permissions, to confirm the permissions on the necessary OUs are, in-fact, set as needed.


It's certainly possible to check write-back permissions via the GUI, but this script will allow you to do so programatically.