Get-EntraDomainNameReference

检索由给定域名引用的对象。

语法

Default (默认值)

Get-EntraDomainNameReference

    -Name <String>
    [-Property <String[]>]
    [<CommonParameters>]

说明

Get-EntraDomainNameReference cmdlet 检索使用给定域名引用的对象。 指定 Name 参数检索对象。

在委派方案中,登录用户必须具有受支持的Microsoft Entra角色或具有必要权限的自定义角色。 此操作所需的最低角色为:

  • 域名管理员
  • 全球阅读器

示例

示例 1:检索域的域名引用对象

Connect-Entra -Scopes 'Domain.Read.All'
Get-EntraDomainNameReference -Name contoso.com | Select-Object Id, DisplayName, '@odata.type'
Id                                   DisplayName              @odata.type
--                                   -------------             ------------------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Sawyer MIller            #microsoft.graph.user
bbbbbbbb-1111-2222-3333-cccccccccccc Adele Vance              #microsoft.graph.user
ffffffff-4444-5555-6666-gggggggggggg Contoso marketing        #microsoft.graph.group
hhhhhhhh-5555-6666-7777-iiiiiiiiiiii Contoso App              #microsoft.graph.application

此示例演示如何检索通过 -Name 参数指定的域的域名引用对象。

  • -Name 参数指定检索所引用对象的域名的名称。

参数

-Name

检索所引用对象的域名的名称。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-Property

指定要返回的属性。

参数属性

类型:

System.String[]

默认值:None
支持通配符:False
不显示:False
别名:Select

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

System.String

输出

System.Object