Enable-HostedEmailAccount

Enable-HostedEmailAccount

Enables the hosted email account assigned to a local user account.

Syntax

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

Detailed Description

The Enable-HostedEmailAccount cmdlet enables a hosted email account that is assigned to a local user account. A hosted email service provides a hosted email account.

Parameters

-LocalAccountName<String>

Specifies the name of a local Active Directory user account. The cmdlet enables the hosted email account that is assigned to the local user account 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

    LocalAccountName

    Type: System.String

    Description: local user name

Outputs

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

Examples

Example 1: Enable a hosted email account

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

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

Get-HostedEmailAccount

Add-HostedEmailAccount

Set-HostedEmailAccount

Disable-HostedEmailAccount

Remove-HostedEmailAccount

Clear-AssignedHostedEmailAccount