Disable-O365User
Disables an office_365_2 account that is assigned to a local network user account.
Syntax
Disable-O365User
[-LocalAccountName] <String>
[<CommonParameters>]
Description
The Disable-O365User cmdlet disables the office_365_1 account that is assigned to a local user account.
Examples
Example 1: Disable an office_365_2 accountoffice_365_2
PS C:\> Disable-O365User -LocalAccountName "PattiFuller"
The Office 365 account is now disabled.
This command disables the office_365_2 account that is assigned to the network user account named PattiFuller.
1:
PS C:\>
Parameters
-LocalAccountName
Specifies the name of a local Active Directory user account. The cmdlet disables the office_365_1 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
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