Get-O365User

Get-O365User

Gets an account.

Sintaxis

Parameter Set: Default
Get-O365User [-O365AccountUPN] <String> [ <CommonParameters>]

Descripción detallada

The Get-O365User cmdlet gets an account.

Parámetros

-O365AccountUPN<String>

Specifies a user principal name (UPN). The cmdlet gets the user account that has the UPN that you specify.

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

    LocalAccountName
    Type: System.String
    Description: local user name

Salidas

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

  • Microsoft.WindowsServerSolutions.O365Integration.O365User

    This cmdlet returns a class that represents an online account.
    When output: online account exists
    ObjectId Property System.Guid
    UserPrincipalName Property System.String
    Activated Property System.Boolean
    LocalUserName Property System.String
    Licenses Property System.Collections.ObjectModel.ReadOnlyCollection<O365UserLicense>

Ejemplos

Example 1: Get an office_365_2 account

This command gets the account that has the UPN PattiFuller@contoso.onmicrosoft.com.

PS C:\> Get-O365User -O365AccountUPN "PattiFuller@contoso.onmicrosoft.com"
PS C:\> 

Temas relacionados

Add-O365User

Enable-O365User

Disable-O365User

Remove-O365User