Get-EntraDomainNameReference

Retrieves the objects that are referenced by 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. Specify Name parameter retrieve the objects.

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

Id                                   DeletedDateTime
--                                   ---------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
bbbbbbbb-1111-2222-3333-cccccccccccc
cccccccc-2222-3333-4444-dddddddddddd
dddddddd-3333-4444-5555-eeeeeeeeeeee
ffffffff-4444-5555-6666-gggggggggggg
hhhhhhhh-5555-6666-7777-iiiiiiiiiiii

This example shows how to retrieve the domain name reference objects for a domain that is specified through the -Name parameter.

  • -Name parameter specifies the name of the domain name for which the referenced objects are retrieved.

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