Get-AzureADUserOwnedDevice

Get registered devices owned by a user.

Syntax

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

Description

The Get-AzureADUserOwnedDevice cmdlet gets registered devices owned by the specified user in Azure Active Directory (AD).

Examples

Example 1: Get devices owned by a user

PS C:\>Get-AzureADUserOwnedDevice -ObjectId "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb"

This command gets the registered devices owned by the specified user.

Parameters

-All

If true, return all objects owned by this user. If false, return the number of objects specified by the Top parameter

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

Specifies the ID of a user (as a UPN or ObjectId) in Azure AD.

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

-Top

Specifies the maximum number of records to return.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Notes

See the migration guide for Get-AzureADUserOwnedDevice to the Microsoft Graph PowerShell.