The Get-MgDomainNameReference cmdlet is used in Microsoft Graph PowerShell to retrieve references to domain names in Microsoft Entra ID. IT administrators can use this command to identify domain dependencies and associations within their organization’s Microsoft Entra ID directory.
Before using the Get-MgDomainNameReference cmdlet, ensure the following:
Install-Module Microsoft.Graph -Scope CurrentUser
Here's how you can use the Get-MgDomainNameReference cmdlet to fetch domain name references:
Get-MgDomainNameReference
-DomainId <String>
[-ExpandProperty <String[]>]
[-Property <String[]>]
[-Filter <String>]
[-Search <String>]
[-Skip <Int32>]
[-Sort <String[]>]
[-Top <Int32>]
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PageSize <Int32>]
[-All]
[-CountVariable <String>]
[-ProgressAction <ActionPreference>]
[<CommonParameters>]
Get-MgDomainNameReference -DomainId "zky.com"
| Parameters | Description |
|---|---|
| -DomainId | This parameter can be used to specify the domain whose name references need to be retrieved. |
| -Filter | This parameter can be used to filter results based on domain attributes. |
| -All | This parameter retrieves all domain name references in Microsoft Entra ID. |
ADManager Plus simplifies Microsoft 365 reporting with predefined reports that can be generated instantly, eliminating the need for complex PowerShell commands. It also enables IT teams to schedule reports, apply filters easily, and export data in various formats, making Microsoft 365 management and reporting more efficient.