techdrive
asked on
email address policies exchange 2010
We have a bunch of email address policies and need to remove them. For example we have a mail domain policy for example ugly.com and it is applied to every OU through an email address policy. %m@ugly.com this is what shows up under email address policies. Is there a way as I have been looking through the command set-emailaddresspolicy to automate this process for all OU's. If I place the object type in a file and did a forloop can this be accomplished
$OU=get-content c:\temp\ou.csv
for (i in $ou) {
set-emailaddresspolicy -id $_ %m@ugly.com
}
Also by removing the email address policy does it remove it from the existing alias. It does not appear to do this for the few I have done but wanted to confirm.
$OU=get-content c:\temp\ou.csv
for (i in $ou) {
set-emailaddresspolicy -id $_ %m@ugly.com
}
Also by removing the email address policy does it remove it from the existing alias. It does not appear to do this for the few I have done but wanted to confirm.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER