Set-HostedEmailAccount

Set-HostedEmailAccount

Assigns a hosted email account to a network user account.

構文

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

詳細説明

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

パラメーター

-EmailAccount<EmailAccountInfo>

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

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • 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

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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"

関連トピック

Get-HostedEmailAccount

Add-HostedEmailAccount

Enable-HostedEmailAccount

Disable-HostedEmailAccount

Remove-HostedEmailAccount

Clear-AssignedHostedEmailAccount