Alias

%3CLINGO-SUB%20id%3D%22lingo-sub-1095998%22%20slang%3D%22en-US%22%3EAlias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1095998%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Experts%3C%2FP%3E%3CP%3EI%20am%20using%20exchange%202010%20hybrid%20environment%2C%20i%20have%20distribution%20groups%20in%20Exchange%20onprem%20and%20Exchange%20online.%20From%20powershell%20syntax%20how%20can%20i%20know%20if%20it%20is%20onprem%20or%20oncloud.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20for%20onprem%20distribution%20group%20lets%20say%20i%20have%20a%20group%20onpremDL%40contoso.com%20and%20its%20alias%20is%20onpremDL%2C%20i%20want%20to%20create%20another%20Alias%20to%20this%2C%20how%20can%20i%20create%20another%20alias.%20i%20dont%20see%20any%20option%20to%20add%20addition%20alias%2C%20can%20i%20add%20additional%20email%20address%20will%20it%20work%20for%20me%2C%20how%20can%20i%20do%20this%20from%20shell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20i%20have%20same%20requirement%20for%20cloudDL%2C%20experts%20guide%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1095998%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMigration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOn-Premises%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1097263%22%20slang%3D%22en-US%22%3ERe%3A%20Alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1097263%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144450%22%20target%3D%22_blank%22%3E%40Roger%20Roger%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20several%20ways%20to%20get%20this%20done.%26nbsp%3B%3CBR%20%2F%3EI'll%20give%20you%20one%20GUI%20based%20method%20and%20one%20PowerShell%20%2FExchange%20Shell%20method%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EGUI%20Version%3A%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3EOpen%20EMC%20(%20Exchange%20Management%20Console%20)%20on%20your%20Exchange%20server%3C%2FLI%3E%3CLI%3EGo%20to%20%22Recipient%20Configuration--%26gt%3BDistribution%20Group%22%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164297i8A6F5FD0CFF6BCFB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3ERight%20click%20your%20distribution%20group%20and%20choose%20%22properties%22%26nbsp%3B%3C%2FLI%3E%3CLI%3EChoose%20the%20%22E-mail%20addresses%22%20tab%26nbsp%3B%3C%2FLI%3E%3CLI%3EClick%20add%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164298i9E608F438AC474FE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3EShell%20method%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3EOpen%20up%20EMS%20(%20Exchange%20Management%20Shell%20)%26nbsp%3B%3C%2FLI%3E%3CLI%3EType%20the%20following%20commands%26nbsp%3B%3CSTRONG%3Enote%20that%20my%20groups%20name%20is%20sales%2C%20replace%20sales%20with%20your%20own%20group.%20Also%20replace%20%22alias%40domain.com%22%20with%20your%20wished%20alias.%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%24Group%20%3D%20Get-DistributionGroup%20%22sales%22%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%24Group.EmailAddresses%20%2B%3D%22Alias%40domain.com%22%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3ESet-DistributionGroup%20-Identity%20%22sales%22%20-EmailAddresses%20%24Group.EmailAddresses%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EThe%203%20above%20commands%20will%20do%20the%20following%20%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3E1%3A%20Gets%20the%20Distribution%20group%20and%20saves%20it%20to%20a%20variable%20called%20%24Group%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3E2%3A%20It%20gets%20the%20current%20email%20addresses%20of%20the%20group%20and%20then%20adds%20%22alias%40domain.com%22%20to%20that%20list%20in%20the%20variable%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3E3%3A%20Sets%20the%20groups%20email%20addresses%20using%20the%20list%20from%20the%20%24Group%20variable.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3ELet%20me%20know%20if%20this%20helps!%3CBR%20%2F%3EFeel%20free%20to%20mark%20my%20reply%20as%20a%20solution%20if%20it%20did%20%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EIf%20you%20have%20more%20questions%2C%20let%20me%20know!%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EKind%20RegardsOliwer%20Sj%C3%B6berg%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

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.

1 Reply
Highlighted

Hello@Roger Roger ! 

 

There are several ways to get this done. 
I'll give you one GUI based method and one PowerShell /Exchange Shell method 

 

GUI Version: 

  1. Open EMC ( Exchange Management Console ) on your Exchange server
  2. Go to "Recipient Configuration-->Distribution Group" 
    clipboard_image_0.png
  3. Right click your distribution group and choose "properties" 
  4. Choose the "E-mail addresses" tab 
  5. Click add
    clipboard_image_1.png


Shell method:

  1. Open up EMS ( Exchange Management Shell ) 
  2. 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 did

 

If you have more questions, let me know! 

 

Kind Regards
Oliwer Sjöberg

Related Conversations
Alias in Exchange Online
Bahareh Mohammadzadeh Akhlaghi in Office 365 on
3 Replies
Group alias / new domain
Frank Nienhaus in Microsoft 365 on
1 Replies