Set-O365AssignedUser
Set-O365AssignedUser
Assigns an account to a network user account.
Sintaxis
Parameter Set: Default
Set-O365AssignedUser [-LocalAccountName] <String> [-O365AccountUPN] <String> [ <CommonParameters>]
Descripción detallada
The Set-O365AssignedUser cmdlet assigns an account to a network user account.
Parámetros
-LocalAccountName<String>
Specifies the name of a local Active Directory user account. The cmdlet assigns the account to the local user account that you specify for the O365AccountUPN parameter.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-O365AccountUPN<String>
Specifies a user principal name (UPN). The cmdlet assigns the account that you specify to the local user account that you specify for the LocalAccountName parameter.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿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,System.String
LocalAccountName
Type: System.String
Description: local user nameO365AccountUPN
Type: System.String
Description: user principal name
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
Example 1: Assign an Office 365 account to a local user account
This command assigns an account to a local user account named PattiFuller.
PS C:\> Set-O365AssignedUser -LocalAccountName "PattiFuller" -O365AccountUPN "PattiFuller@contoso.onmicrosoft.com"
PS C:\>