Set-HostedEmailAccount
Assigns a hosted email account to a network user account.
Syntax
Set-HostedEmailAccount
[-LocalAccountName] <String>
[-EmailAccount] <EmailAccountInfo>
[<CommonParameters>]
Description
The Set-HostedEmailAccount cmdlet assigns a hosted email account to a local user account. A hosted email service provides a hosted email account.
Examples
Example 1: Assign a hosted email account to a local user account
PS C:\> Set-HostedEmailAccount -LocalAccountName "PattiFuller" -EmailAccount "PattiFuller@Contoso.com"
This command assigns the hosted email account named PattiFuller@Contoso.com to the local user account named PattiFuller.
Parameters
-EmailAccount
Specifies the email account information that the hosted email service provides.
Type: | EmailAccountInfo |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-LocalAccountName
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.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
LocalAccountName Type: System.String Description: local user name
Microsoft.WindowsServerSolutions.HostedEmail.EmailAccountInfo
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
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for