是否有PowerShell cmdlet可以获取引用Azure Active Directory中域名的资源?

时间:2020-07-13 18:13:30

标签: azure powershell azure-active-directory

在从Azure Active Directory(AAD)删除自定义域之前,我首先需要获取引用该自定义域的所有用户,组和应用程序的列表。可以通过Azure门户手动完成

enter image description here enter image description here

是否可以通过PowerShell获取此列表?我看到了PowerShell cmdlet Get-MsolDomain,但我没有看到它输出了此类信息。

1 个答案:

答案 0 :(得分:0)

我建议使用模块 AzureAD 中的cmdlet Get-AzureADDomainNameReference -Name”

您可以从PowerShell库- https://www.powershellgallery.com/packages/AzureAD/

安装该模块
相关问题