Remove-WssMsoUserAssignment

Remove-WssMsoUserAssignment

Removes the assignment between an online service account and an account.

Syntax

Parameter Set: Default
Remove-WssMsoUserAssignment [-WssUserName] <String> [ <CommonParameters>]

Detailed Description

The Remove-WssMsoUserAssignment cmdlet removes the online service account (the Microsoft account) from its assignment to a local network user account. This cmdlet does not otherwise modify or delete either account.

Parameters

-WssUserName<String>

Specifies the name of a user account. The cmdlet removes the assignment to the online service account for the user account that you specify.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

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

    WssUserName
    Type: System.String
    Description: local network account name of user

Outputs

The output type is the type of the objects that the cmdlet emits.

Notes

  • Note: If you run this command against a local network user account that does not have a Microsoft account it generates an error.

Examples

Example 1: Remove an assignment

This command removes the assignment between the user account named PattiFuller and an online service account.

PS C:\> Remove-WssMsoUserAssignment -WssUserName "PattiFuller"
PS C:\> 

Set-WssMsoUserAssignment

Get-WssMsoAssignedUser

Remove-WssMsoGroupAssignment