Set-WssMsoUserAssignment

Set-WssMsoUserAssignment

Assigns an online service account to a user account.

Sintaxis

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

Descripción detallada

The Set-WssMsoUserAssignment cmdlet assigns an online service account to a local network user account.

Parámetros

-MsoUserName<String>

Specifies a user principal name (UPN). The cmdlet assigns the online service account for the UPN that you specify to a user account.

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-WssUserName<String>

Specifies the name of a user account. The cmdlet assigns the online service account to 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.

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

Ejemplos

Example 1: Assign an online service account

This command assigns the online service account DavidChew@TSQA.Contoso.com to the local network user account named Admin.

PS C:\> Set-WssMSOAssignedUser -WssUserName "Admin" -MsoUserName "DavidChew@TSQA.Contoso.com" 
PS C:\> 

Temas relacionados

Remove-WssMsoUserAssignment

Get-WssMsoAssignedUser

Rename-WssMsoAssignedUser

Set-WssMsoGroupAssignment