Remove-WssMsoUserAssignment

Remove-WssMsoUserAssignment

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

Sintaxis

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

Descripción detallada

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.

Parámetros

-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.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • System.String

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

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Notas

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

Ejemplos

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:\> 

Temas relacionados

Set-WssMsoUserAssignment

Get-WssMsoAssignedUser

Remove-WssMsoGroupAssignment