【问题标题】:List all Azure AD groups ending with "reader"列出所有以“reader”结尾的 Azure AD 组
【发布时间】:2018-10-08 09:32:36
【问题描述】:

我正在尝试列出显示名称以“Reader”结尾的所有 azure 广告组

Get-AzureRmADGroup -SearchString "Reader"

微软的例子说

Example 2: Get groups by search string
This command gets all Active Directory groups that **include** Patti in the display name.


Windows PowerShell
PS C:\> Get-AzureRmADGroup -SearchString "Patti"

但是当我尝试这样做时我的结果是空白的,我错过了什么?

【问题讨论】:

    标签: azure powershell azure-active-directory azure-powershell


    【解决方案1】:

    试试下面的命令。

    Get-AzureRmADGroup | Where-Object {$_.DisplayName -like "*Reader"}
    

    测试结果(为了加快运行速度,使用-First 5,可以忽略):

    【讨论】:

    • 完美的你就像神什么的! :)
    猜你喜欢
    • 1970-01-01
    • 2022-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多