Intune – Remove Owner from device

Remove-AzureADDeviceRegisteredOwner (AzureAD) | Microsoft Learn


$device = Get-AzureADDevice -SearchString "lt3320"
$Owner = Get-AzureADDeviceRegisteredOwner -ObjectId $Device.ObjectId
Remove-AzureADDeviceRegisteredOwner -ObjectId $Device.ObjectId -OwnerId $Owner.ObjectId

#check if owner is deleted
Get-AzureADDeviceRegisteredOwner -ObjectId $Device.ObjectId | fl

The first command gets a device by using the Get-AzureADDevice (./, and then stores it in the $Device variable.

The second command gets the registered owner for the device in $Device by using the Get-AzureADDeviceRegisteredOwner (./ The command stores it in the $Owner variable.

The final command removes the owner in $Owner from the device in $Device.

Leave a Reply

Your email address will not be published. Required fields are marked *