Get-O365User

Get-O365User

Gets an account.

構文

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

詳細説明

The Get-O365User cmdlet gets an account.

パラメーター

-O365AccountUPN<String>

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

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String

    LocalAccountName
    Type: System.String
    Description: local user name

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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

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

関連トピック

Add-O365User

Enable-O365User

Disable-O365User

Remove-O365User