Clear-AssignedHostedEmailAccount
Clear-AssignedHostedEmailAccount
Removes the relationship between a hosted email account and a local user account.
Syntax
Parameter Set: Default
Clear-AssignedHostedEmailAccount [-LocalAccountName] <String> [ <CommonParameters>]
Detailed Description
The Clear-AssignedHostedEmailAccount cmdlet removes the relationship between a hosted email account and the local user account to which the hosted email account is assigned. A hosted email service provides a hosted email account.
Parameters
-LocalAccountName<String>
Specifies the name of a local Active Directory user account. The cmdlet removes the relationship between the hosted email account and the local user account that 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: Remove the relationship between a hosted email account and a local user account
This command removes the relationship between the hosted email account and the local user account named PattiFuller.
PS C:\> Clear-AssignedHostedEmailAccount -LocalAccountName "PattiFuller"
PS C:\>