Get-EntraDomainNameReference
擷取由特定網域名稱所參考的物件。
語法
Default (預設值)
Get-EntraDomainNameReference
-Name <String>
[-Property <String[]>]
[<CommonParameters>]
Description
指令 Get-EntraDomainNameReference 長會擷取與特定網域名稱所參考的物件。 指定 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 |
| 別名: | 選取 |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。