Change device owner of an Azure AD joined device

Change device owner of an Azure AD joined device

If you join devices to Azure AD, then you can see that each device has an owner. The owner is the user who joined the device to the Azure AD which is sometimes the account of the administrator. That’s why one probably wants to change the owner which is unfortunately not possible via the Azure portal. But, as usual, you can easily do it via PowerShell.

WARNING: More results are available. Please specify one of the All or MaxResults parameters. Get-AzureADDeviceRegisteredOwner : Cannot bind argument to parameter ‘ObjectId’ because it is null. At C:\Users\Desktop\Script.ps1:11 char:57 + … (Get-AzureADDeviceRegisteredOwner -ObjectId $device.ObjectId).Object …