Add-EntraDeviceRegisteredOwner

Adds a registered owner for a device.

Syntax

Add-EntraDeviceRegisteredOwner
    -ObjectId <String>
    -RefObjectId <String> 
   [<CommonParameters>]

Description

The Add-EntraDeviceRegisteredOwner cmdlet adds a registered owner for a Microsoft Entra ID device.

Examples

Example 1

Connect-Entra -Scopes 'Device.ReadWrite.All'
$DeviceId = (Get-EntraDevice -top 1).ObjectId
$UserObjectId = (Get-EntraUser -Top 1).ObjectId
Add-EntraDeviceRegisteredOwner -ObjectId $DeviceId -RefObjectId $UserObjectId

This examples shows how to add a registered owner to a device.

-ObjectId - specifies the unique identifier (Object ID) of the device to which you want to add a registered owner. The $DeviceId variable should contain the Object ID of the device.

-RefObjectId - specifies the unique identifier (Object ID) of the user who will be added as a registered owner of the device. The $UserObjectId variable should contain the Object ID of the user.

Parameters

-ObjectId

Specifies the object ID.

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

-RefObjectId

Specifies the ID of the Active Directory object to add.

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