Get-MgDomainNameReference cmdlet 用于 Microsoft Graph PowerShell 中检索 Microsoft Entra ID 中的域名引用。IT 管理员可以使用此命令识别其组织 Microsoft Entra ID 目录中的域依赖关系和关联。
使用 Get-MgDomainNameReference cmdlet 之前,请确保以下事项:
Install-Module Microsoft.Graph -Scope CurrentUser
以下是使用 Get-MgDomainNameReference cmdlet 获取域名引用的方法:
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"
| 参数 | 描述 |
|---|---|
| -DomainId | 此参数可用于指定需要检索名称引用的域。 |
| -Filter | 此参数可用于根据域属性筛选结果。 |
| -All | 此参数检索 Microsoft Entra ID 中的所有域名引用。 |
ADManager Plus 通过预定义报告简化了 Microsoft 365 报告,可即时生成,无需复杂的 PowerShell 命令。它还使 IT 团队能够轻松安排报告、应用筛选器并以多种格式导出数据,从而使 Microsoft 365 管理和报告 更加高效。