Adding an Alias to a Microsoft O365 Group

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Adding an Alias to a Microsoft O365 Group

Message par ForumBot »

Adding an Alias to a Microsoft O365 Group
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Adding an Alias to a Microsoft O365 Group

Message par ForumBot »

There is a link that describes how to use PowerShell to add an alias:

[Add Additional SMTP Aliases to Office 365 Groups](https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_password-mso_o365b/add-additional-smtp-aliases-to-office-365-groups/b017e4b9-a0e2-4295-a40e-9ca2ec359965?auth=1)

**Concise Instructions**

Open PowerShell.

Allow Remote, Signed scripts so you can import Microsoft O365 Exchange commands. We will set this back to default when done:

```
Set-ExecutionPolicy RemoteSigned

```

Enter your credentials so you can manage the O365 environment you are working on. It will prompt you for your username and your password:

```
$UserCredential = Get-Credential

```

Create a new PowerShell session to import the Microsoft O365 Exchange commands:

```
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

```

Import the session. You should see the standard PowerShell progress bar as the commands are imported:

```
Import-PSSession $Session

```

Now you are ready to issue your commands. First, make sure you can read the properties of the Exchange Group:

```
Get-UnifiedGroup -Identity [email protected] | FL EmailAddresses

```

It should output the aliases assigned to the Outlook Group.

To add the alias, enter this command. I will use my example in the question above to show what it looks like:

```
Set-UnifiedGroup -Identity [email protected] -EmailAddresses @{Add="[email protected]"}

```

You can then run the `Get-UnifiedGroup` command and see the alias now listed in the email addresses.

Return to the default execution policy:

```
Set-ExecutionPolicy Default

```

**Next Steps**

At this point the group has an alias. You can email the alias internally to your O365 account. For instance, [email protected] can email [email protected] and it will work correctly. It will be

*(Réponse tronquée)*
Répondre

Revenir à « Microsoft Teams »