Get-EntraDeviceRegisteredOwner

Gets the registered owner of a device.

Syntax

Get-EntraDeviceRegisteredOwner
   -ObjectId <String>
   [-All]
   [-Top <Int32>]
   [-Property <String[]>]
   [<CommonParameters>]

Description

The Get-EntraDeviceRegisteredOwner cmdlet gets the registered owner of a device in Microsoft Entra ID. Specify ObjectId parameter gets the registered owner of a device.

Examples

Example 1: Retrieve the registered owner of a device

Connect-Entra -Scopes 'Device.Read.All'
$DevId = (Get-EntraDevice -Top 1).ObjectId
Get-EntraDeviceRegisteredOwner -ObjectId $DevId

Id                                   DeletedDateTime
--                                   ---------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb

This example shows how to find the registered owner of a device..

  • -ObjectId parameter specifies the device's ID.

Example 2: Retrieve the registered owner of a device

Connect-Entra -Scopes 'Device.Read.All'
Get-EntraDeviceRegisteredOwner -ObjectId 'bbbbbbbb-1111-2222-3333-cccccccccccc'

Id                                   DeletedDateTime
--                                   ---------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
cccccccc-2222-3333-4444-dddddddddddd

This command gets the registered owner of a device.

  • -ObjectId parameter specifies the device's ID

Example 3: Retrieve all the registered owners of a device

Connect-Entra -Scopes 'Device.Read.All'
Get-EntraDeviceRegisteredOwner -ObjectId 'bbbbbbbb-1111-2222-3333-cccccccccccc' -All

Id                                   DeletedDateTime
--                                   ---------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
cccccccc-2222-3333-4444-dddddddddddd

This command retrieves all the registered owners of a device.

  • -ObjectId parameter specifies the device's ID.

Example 4: Retrieve top one registered owner of a device

Connect-Entra -Scopes 'Device.Read.All'
Get-EntraDeviceRegisteredOwner -ObjectId 'bbbbbbbb-1111-2222-3333-cccccccccccc' -Top 1

Id                                   DeletedDateTime
--                                   ---------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb

This command retrieves all the registered owners of a device.

  • -ObjectId parameter specifies the device's ID.

Parameters

-All

List all pages.

Type:System.Management.Automation.SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ObjectId

Specifies the ID of an object.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Property

Specifies properties to be returned.

Type:System.String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Top

Specifies the maximum number of records to return.

Type:System.Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False