Microsoft Graph PowerShell 中的 Get-MgDomainServiceConfigurationRecord cmdlet 使 IT 管理员能够检索 Microsoft Entra ID 中的域服务配置记录。该 cmdlet 帮助管理员验证 DNS 设置、管理域配置并确保服务集成的顺畅。
使用 Get-MgDomainServiceConfigurationRecord cmdlet 之前,请确保满足以下先决条件:
Install-Module Microsoft.Graph -Scope CurrentUser
运行以下脚本以获取域服务配置记录:
Get-MgDomainServiceConfigurationRecord
-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-MgDomainServiceConfigurationRecord -DomainId "zky.com"
| 参数 | 描述 |
|---|---|
| -DomainId | 此参数可用于指定需要检索记录的域。 |
| -Filter | 此参数可用于根据域属性筛选结果。 |
| -All | 此参数检索 Entra ID 中的所有配置记录。 |
ADManager Plus 是一款全面的 Microsoft 365 管理和报告 解决方案,通过提供用户友好的界面简化 IT 管理,消除复杂 PowerShell 脚本的需求,实现高效的管理、报告和任务委派。