Disable-HostedEmailAccount
Disables the hosted email account assigned to a local user account.
Syntax
Disable-HostedEmailAccount
[-LocalAccountName] <String>
[<CommonParameters>]
Description
The Disable-HostedEmailAccount cmdlet disables a hosted email account that is assigned to a local user account. A hosted email service provides a hosted email account.
Examples
Example 1: Disable a hosted email account
PS C:\> Disable-HostedEmailAccount -LocalAccountName "PattiFuller"
This command disables 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 disables the hosted email account that is assigned 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
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