Set-HostedEmailAccount

Set-HostedEmailAccount

Assigns a hosted email account to a network user account.

Sintaxis

Parameter Set: Default
Set-HostedEmailAccount [-LocalAccountName] <String> [-EmailAccount] <EmailAccountInfo> [ <CommonParameters>]

Descripción detallada

The Set-HostedEmailAccount cmdlet assigns a hosted email account to a local user account. A hosted email service provides a hosted email account.

Parámetros

-EmailAccount<EmailAccountInfo>

Specifies the email account information that the hosted email service provides.

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-LocalAccountName<String>

Specifies the name of a local Active Directory user account. The cmdlet assigns the hosted email account to the local user account that you specify.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • System.String,Microsoft.WindowsServerSolutions.HostedEmail.EmailAccountInfo

    LocalAccountName
    Type: System.String
    Description: local user name

    EmailAccount
    Type: Microsoft.WindowsServerSolutions.HostedEmail.EmailAccountInfo
    Description: email account information
    AccountId Property System.String
    AdditionalEmailAddresses Property System.Collections.Generic.IList<System.String>
    DisplayNameProperty System.String
    Enabled Property System.Boolean
    ExtendedProperties Property System.Collections.Generic.IDictionary<System.String,System.String>
    FirstName Property System.String
    LastName Property System.String
    PrimaryEmailAddress Property System.String

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

Example 1: Assign a hosted email account to a local user account

This command assigns the hosted email account named PattiFuller@Constoso.com to the local user account named PattiFuller.

PS C:\> Set-HostedEmailAccount -LocalAccountName "PattiFuller" -EmailAccount "PattiFuller@Constoso.com"

Temas relacionados

Get-HostedEmailAccount

Add-HostedEmailAccount

Enable-HostedEmailAccount

Disable-HostedEmailAccount

Remove-HostedEmailAccount

Clear-AssignedHostedEmailAccount