简体   繁体   English

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

[英]Is there a PowerShell cmdlet to get the resources that reference a domain name in Azure Active Directory?

Before deleting a custom domain from Azure Active Directory (AAD), I first need to get a list of all users, groups, and applications that reference that custom domain.在从 Azure Active Directory (AAD) 中删除自定义域之前,我首先需要获取引用该自定义域的所有用户、组和应用程序的列表。 This can be done manually through the Azure portal这可以通过 Azure 门户手动完成

在此处输入图像描述 在此处输入图像描述

Is there a way to get this list through PowerShell?有没有办法通过 PowerShell 获得这个列表? I see the PowerShell cmdlet Get-MsolDomain , but I do not see that this outputs this kind of information.我看到了 PowerShell cmdlet Get-MsolDomain ,但我没有看到它输出这种信息。

I recommend to use cmdlet Get-AzureADDomainNameReference -Name '' from module AzureAD .我建议使用模块AzureAD中的 cmdlet Get-AzureADDomainNameReference -Name ''

You can install that module from PowerShell Gallery - https://www.powershellgallery.com/packages/AzureAD/您可以从 PowerShell 库安装该模块 - https://www.powershellgallery.com/packages/AzureAD/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM