external help file | Module Name | ms.assetid | ms.custom | ms.reviewer | online version | schema |
---|---|---|---|---|---|---|
Microsoft.Open.AzureAD16.Graph.PowerShell.dll-Help.xml |
AzureADPreview |
944E709A-0F66-485C-86E4-1CB4C998C71D |
iamfeature=PowerShell |
rodejo |
2.0.0 |
Gets a registered user.
Get-AzureADDeviceRegisteredUser -ObjectId <String> [-All <Boolean>] [-Top <Int32>] [<CommonParameters>]
The Get-AzureADDeviceRegisteredUser cmdlet gets a registered user for an Azure Active Directory device.
PS C:\> $DevId = (Get-AzureADDevice -Top 1).ObjectId
PS C:\> Get-AzureADDeviceRegisteredUser -ObjectId $DevId
The first command gets the object ID of a device by using the Get-AzureADDevice cmdlet, and then stores it in the $DevId variable.
The second command gets the registered users of the device in $DevId.
If true, return all registered users. If false, return the number of objects specified by the Top parameter
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Specifies an object ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.