Hide from GAL - AD Atrtribute (msExchHideFromAddressLists)

Hi,

How would I do something like this.

IF Users is a Member of AD Group “Email License” and Employment status is NOT ‘T’ then set AD Attribute “msExchHideFromAddressLists” to “TRUE”.

please help.
image