Remove-EntraDeviceRegisteredOwner
Removes the registered owner of a device.
Syntax
Remove-EntraDeviceRegisteredOwner
-OwnerId <String>
-DeviceId <String>
[<CommonParameters>]
Description
The Remove-EntraDeviceRegisteredOwner
cmdlet removes the registered owner of a device in Microsoft Entra ID.
Examples
Example 1: Remove an owner from a device
Connect-Entra -Scopes 'Directory.AccessAsUser.All'
$Device = Get-EntraDevice -Top 1
$Owner = Get-EntraDeviceRegisteredOwner -DeviceId $Device.ObjectId
Remove-EntraDeviceRegisteredOwner -DeviceId $Device.ObjectId -OwnerId $Owner.ObjectId
This examples shows how to remove the owner of a device.
Parameters
-DeviceId
Specifies an object ID.
Type: | System.String |
Aliases: | ObjectId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-OwnerId
Specifies an owner ID.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |