Set-O365EmailAddresses

Set-O365EmailAddresses

Sets up email addresses for a user.

Syntax

Parameter Set: Default
Set-O365EmailAddresses [-LocalAccountName] <String> [[-EmailAddresses] <List<String>> ] [ <CommonParameters>]

Detailed Description

The Set-O365EmailAddresses cmdlet sets up email addresses in Exchange Online for a user from Integration.

Parameters

-EmailAddresses<List<String>>

Specifies the email addresses of the user that you specify in the LocalAccountName parameter. The cmdlet sets up the email addresses that you specify.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-LocalAccountName<String>

Specifies the name of a local Active Directory user account. The cmdlet sets up the email addresses in Exchange Online for the local user that you specify.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String,System.Collections.Generic.List<System.String>

    LocalAccountName
    Type: System.String
    Description: local user name

    EmailAddresses
    Type: System.Collections.Generic.List<System.String>
    Description: email addresses of the user

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Set up email addresses for a user

This command sets up the specified email addresses for the user account named PattiFuller.

PS C:\> Set-O365EmailAddresses -LocalAccountName "PattiFuller" -EmailAddresses "PattiFuller@Contoso.com,CustomerFeedback@Contoso.com" 
PS C:\> 

Get-O365EmailAddresses