Clear-O365AssignedUser

Clear-O365AssignedUser

Clears the assignment of an account to a local network user account.

Syntax

Parameter Set: Default
Clear-O365AssignedUser [-LocalAccountName] <String> [ <CommonParameters>]

Detailed Description

The Clear-O365AssignedUser cmdlet clears the assignment of an account to a local user account.

Parameters

-LocalAccountName<String>

Specifies the name of a local Active Directory user account. The cmdlet clears the assignment of the account to the local user account that you specify.

Aliases

none

Required?

true

Position?

2

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 Clear the assignment of an office_365_2 account to a local user account

This command clears the assignment of the account to the local network user account named PattiFuller.

PS C:\> Clear-O365AssignedUser -LocalAccountName "PattiFuller"
PS C:\> 

Get-O365AssignedUser

Set-O365AssignedUser