如何使用 PowerShell 脚本列出 Azure Active Directory 组

下面演示了如何使用 PowerShell 脚本和 ADManager Plus(一款 Active Directory 管理和报告工具)获取网络中的 Azure AD 组列表。

Azure PowerShell

可以使用以下 cmdlet 获取网络中的 Azure AD 组:

 已复制
Get-AzADGroup
[-Count]
[-Expand <String[]>]
[-Select <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-ConsistencyLevel <String>]
[-First <UInt64>]
[-Skip <UInt64>]
[-AppendSelected]
[-DefaultProfile <PSObject>]
[-CountVariable <String>]
[<CommonParameters>]
点击复制整个脚本

ADManager Plus

使用 ADManager Plus 列出 Azure AD 组的步骤:

  1. 登录 ADManager Plus 并导航到 Microsoft 365 选项卡 > 报告 > 组报告
  2. 常规组报告 下,点击 所有组
  3. Microsoft 租户 下拉列表中选择所需的 Microsoft 365 租户,然后点击 生成。

使用 PowerShell 脚本列出 Azure AD 组的限制:

  • PowerShell 脚本在命令行中运行,用户体验不佳。
  • 只有具备 PowerShell 专业知识的技术人员才能执行此命令。
  • 这些脚本生成时间较长,可能影响工作效率。

使用 ADManager Plus 的优势:

  • 一键生成报告,轻松无忧。
  • 无需脚本即可直接从报告中管理对象。
  • 报告可以按计划生成并导出为所需格式。

轻松无忧的 Azure AD 组成员管理

  获取 30 天免费试用。

开始您的 无脚本 AD 管理,报告和 自动化之旅 使用 ADManager Plus。

  •  
     
  • 提交即表示您同意根据 隐私政策 处理个人数据。

谢谢

您的下载将在 15 秒内自动开始。如未开始,点击此处手动下载。

相关 Powershell 操作指南:

Active Directory 管理和报告的一站式解决方案

电子邮件下载链接 Email the ADManager Plus download link