Forum Discussion
Roger Roger
Jan 08, 2020Iron Contributor
Alias
Hi Experts
I am using exchange 2010 hybrid environment, i have distribution groups in Exchange onprem and Exchange online. From powershell syntax how can i know if it is onprem or oncloud.
2. for onprem distribution group lets say i have a group onpremDL@contoso.com and its alias is onpremDL, i want to create another Alias to this, how can i create another alias. i dont see any option to add addition alias, can i add additional email address will it work for me, how can i do this from shell.
3. i have same requirement for cloudDL, experts guide me.
- oliwer_sundgrenSteel Contributor
HelloRoger Roger !
There are several ways to get this done.
I'll give you one GUI based method and one PowerShell /Exchange Shell methodGUI Version:
- Open EMC ( Exchange Management Console ) on your Exchange server
- Go to "Recipient Configuration-->Distribution Group"
- Right click your distribution group and choose "properties"
- Choose the "E-mail addresses" tab
- Click add
Shell method:
- Open up EMS ( Exchange Management Shell )
- Type the following commands note that my groups name is sales, replace sales with your own group. Also replace "alias@domain.com" with your wished alias.
$Group = Get-DistributionGroup "sales"
$Group.EmailAddresses +="Alias@domain.com"
Set-DistributionGroup -Identity "sales" -EmailAddresses $Group.EmailAddresses
The 3 above commands will do the following
1: Gets the Distribution group and saves it to a variable called $Group
2: It gets the current email addresses of the group and then adds "alias@domain.com" to that list in the variable
3: Sets the groups email addresses using the list from the $Group variable.
Let me know if this helps!
Feel free to mark my reply as a solution if it didIf you have more questions, let me know!
Kind Regards
Oliwer Sjöberg