Get-HostedEmailAccount

Gets the hosted email account that is assigned to a local user account.

Syntax

Get-HostedEmailAccount
   [-LocalAccountName] <String>
   [<CommonParameters>]

Description

The Get-HostedEmailAccount cmdlet gets the hosted email account that is assigned to a local user account. A hosted email service provides a hosted email account.

Examples

Example 1: Get a hosted email account

PS C:\> Get-HostedEmailAccount -LocalAccountName "PattiFuller"

This command gets the hosted email account that is assigned to the local user account named PattiFuller.

1:

PS C:\>

Parameters

-LocalAccountName

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

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

LocalAccountName Type: System.String Description: local user name

Outputs

EmailAccountInfo

This cmdlet returns the account information from the hosted email provider.