Remove-HostedEmailAccount
Removes the hosted email account assigned to a local user account.
Syntax
Remove-HostedEmailAccount
[-LocalAccountName] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-HostedEmailAccount cmdlet removes the hosted email account that is assigned to a local user account. The cmdlet removes the hosted email account from Windows Server Essentials that is provided by a hosted email service.
Examples
Example 1: Removes a hosted email account
PS C:\> Remove-HostedEmailAccount -LocalAccountName "PattiFuller"
This command removes the hosted email account that is assigned to the local user account named PattiFuller.
1:
PS C:\>
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
LocalAccountName Type: System.String Description: local user name
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