Add-WssMsoUser
Add-WssMsoUser
Add an online service account, and assign it to a user account.
Sintaxis
Parameter Set: Default
Add-WssMsoUser [-WssUserName] <String> [-MsoUserName] <String> [[-License] <MSOLicense[]> ] [ <CommonParameters>]
Descripción detallada
The Add-WssMsoUser cmdlet adds and enables an online service account to , and assigns that account to a local network user account.
Parámetros
-License<MSOLicense[]>
Specifies an array of user licenses. Specifies an array of licenses as MSOLicense objects. The cmdlet assigns the licenses that you specify to the user account. To obtain MSOLicense objects, use the Get-WssMsoSubscription cmdlet to get subscription information. Subscription information contains the MSOLicenseSuite array that refers to MSOLicense objects.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-MsoUserName<String>
Specifies a user principal name (UPN). The cmdlet adds an online service account that has the UPN that you specify.
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 an 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.
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.
Ejemplos
Example 1: Add an online account
This command adds an online service account DavidChew@TSQA.Contoso.com and assigns it to the local network user account named DavidChew.
PS C:\> Add-WSSMSOUser -WssUserName "DavidChew" -MsoUserName "DavidChew@TSQA.Contoso.com"
PS C:\>