Remove-O365User
Removes an office_365_2 account that is assigned to a local user account.
Syntax
Remove-O365User
[-LocalAccountName] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-O365User cmdlet removes a office_365_1 account that is assigned to a local user account.
Examples
Example 1: Remove an office_365_2 accountoffice_365_2
PS C:\> Remove-O365User -LocalAccountName "PattiFuller"
The Office 365 account was removed.
This command removes the office_365_2 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 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 |
-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