Get-mailcontact -OrganizationalUnit "contoso.com/path/to/ou" | Set-mailContact -EmailAddressPolicyEnabled $false -whatif
Disable email addresspolicy on all contacts in one OU
Leave a reply
Get-mailcontact -OrganizationalUnit "contoso.com/path/to/ou" | Set-mailContact -EmailAddressPolicyEnabled $false -whatif