Get-​Azure​AD​Device​Registered​Owner

Gets the registered owner of a device.

Syntax

Get-AzureADDeviceRegisteredOwner
   [-All <Boolean>]
   -ObjectId <String>
   [-Top <Int32>]
   [<CommonParameters>]

Description

The Get-AzureADDeviceRegisteredOwner cmdlet gets the registered owner of a device in Azure Active Directory.

Examples

Example 1: Retrieve the registered owner of a device

PS C:\> $DevId = (Get-AzureADDevice -Top 1).ObjectId
PS C:\> Get-AzureADDeviceRegisteredOwner -ObjectId $DevId

The first command gets the object ID of a device by using the Get-AzureADDevice cmdlet, and then stores it in the $DevId variable.

The second command gets the registered owner of the device in $DevId.

Required Parameters

-ObjectId

Specifies the ID of an object.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-All

If true, return all registered owners. If false, return the number of objects specified by the Top parameter

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-Top
Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False