Get-EntraDomainNameReference
This cmdlet retrieves the objects that are referenced with a given domain name.
Syntax
Get-EntraDomainNameReference
-Name <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraDomainNameReference
cmdlet retrieves the objects that are referenced with a given domain name.
The work or school account needs to belong to at least the Domain Name Administrator or Global Reader Microsoft Entra role.
Examples
Example 1: Retrieve the domain name reference objects for a domain
Connect-Entra -Scopes 'Domain.Read.All'
Get-EntraDomainNameReference -Name contoso.com
ageGroup :
onPremisesLastSyncDateTime :
creationType :
imAddresses : {}
preferredLanguage :
mail : Hood@contoso.com
securityIdentifier : A-1-22-3-4444444444-5555555555-6666666-7777777777
identities : {@{signInType=userPrincipalName; issuer=contoso.com; issuerAssignedId=Hood@contoso.com}}
consentProvidedForMinor :
onPremisesUserPrincipalName :
assignedLicenses : {}
department :
jobTitle :
proxyAddresses : {SMTP:Hood@contoso.com}
This example shows how to retrieve the domain name reference objects for a domain that is specified through the -Name parameter.
Parameters
-Name
The name of the domain name for which the referenced objects are retrieved.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Property
Specifies properties to be returned
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
System.String
Outputs
System.Object
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for