Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

how to create a new mail contact while disabling the emailpolicy before its actually created

$
0
0

hello again!

so we have a list of users that have user@kiwi.com as their email address, and we need to create new mail contacts for each of them but having a diff email address like user@g.kiwi.com. we also have to disabled the email policy because we don't want it to add other other email addresses. its on by default

 

this is what we tried below w/ no cigar.

Import-Csv Contacts.csv | ForEach-Object { New-MailContact -Name $_."Name" EmailAddressPolicyEnabled $False -ExternalEmailAddress $_."Email-address" -OrganizationalUnit "New_Forwarders" -Alias $_."Alias" }

Any thoughts?
thanks in advance

Viewing all articles
Browse latest Browse all 6937

Trending Articles