新接受的域 - 添加用户别名 [英] New accepted domain - adding user alias's
问题描述
我在Office365中添加了一个新的接受域,但我现在需要创建别名并设置为默认值。我使用下面的PowerShell脚本添加它们,但是有些用户有多个电子邮件地址没有映射到那里的邮箱别名,而且
只接收新域的新别名,用于邮箱别名。有没有人知道为用户的所有电子邮件地址为接受域创建新别名的方法?
我的脚本... ...
$ users = Get-Mailbox
foreach($ a in $ users){$ a.emailaddresses。 add(" smtp:$($ a.alias)@ mynewdomain.com")}
$ users | %{Set-Mailbox $ _ .Identity -WindowsEmailAddress $ _.WindowsEmailAddress}
之前......
USER1
user1@olddomain.com
events@olddomain.com
email@olddomain.com
我的脚本只执行此操作...
USER1
user1@olddomain.com
user1 @ newdomain.com
events@olddomain.com
email@olddomain.com
$
但我希望这样做...
USER1
user1@olddomain.com
events@olddomain.com
电子邮件@ old domain.com
user1@newdomain.com
events@newdomain.com
email@newdomain.com
I have added a new accepted domain in Office365 but i now need to create the alias's and set as default. I have used the below PowerShell script to add them but some users have multiple email address's that don't map to there mailbox alias and they
only receive a new alias for the new domain for there mailbox alias. Does anyone know a way to create a new alias for the accepted domain for all of the email addresses for the user?
My script...
$users = Get-Mailbox
foreach ($a in $users) {$a.emailaddresses.add("smtp:$($a.alias)@mynewdomain.com")}
$users | %{Set-Mailbox $_.Identity -WindowsEmailAddress $_.WindowsEmailAddress}
Before...
USER1
user1@olddomain.com
events@olddomain.com
email@olddomain.com
My script only does this...
USER1
user1@olddomain.com
user1@newdomain.com
events@olddomain.com
email@olddomain.com
But i would like it to do this...
USER1
user1@olddomain.com
events@olddomain.com
email@olddomain.com
user1@newdomain.com
events@newdomain.com
email@newdomain.com
有什么想法吗?
推荐答案
A用户只能拥有一个别名。
A user gets to have only one alias.
您确定要提出正确的问题。
Are you sure you are asking the right question.
在办公室论坛中询问有关O365的问题。  它们将帮助您了解如何使用O365。
Ask your questions about O365 in the office forums. They will help you understand how to use O365.
这篇关于新接受的域 - 添加用户别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!