Muokkaa

Jaa


Get-AzureADObjectByObjectId

Retrieves the object(s) specified by the objectIds parameter

Syntax

Get-AzureADObjectByObjectId
   -ObjectIds <System.Collections.Generic.List`1[System.String]>
   [-Types <System.Collections.Generic.List`1[System.String]>]
   [<CommonParameters>]

Description

Retrieves the object(s) specified by the objectIds parameter

Examples

Example 1

PS C:\WINDOWS\system32> Get-AzureADObjectByObjectId -ObjectIds aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb, bbbbbbbb-1111-2222-3333-cccccccccccc

ObjectId                             AppId                                DisplayName
--------                             -----                                -----------
bbbbbbbb-1111-2222-3333-cccccccccccc 71715b24-8cdd-432b-a138-86e8ad179274 Woodgrove HR App

DeletionTimeStamp                   :
ObjectId                            : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectType                          : DeviceConfiguration
PublicIssuerCertificates            : {}
CloudPublicIssuerCertificates       : {}
RegistrationQuota                   : 20
MaximumRegistrationInactivityPeriod : 90

In this example two objects are retrieved (a DeviceConfiguration object and an Application object) as specified by the value of the ObjectIds parameter

Parameters

-ObjectIds

One or more object ID's, separated by commas, for which the objects are retrieved

Type:List<T>[String]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Types

Specifies the type of objects that the cmdlet returns

Type:List<T>[String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object

Notes

See the migration guide for Get-AzureADObjectByObjectId to the Microsoft Graph PowerShell.