列出所有以“结束”结尾的Azure广告组;“读者”;
我正在尝试列出显示名以“Reader”结尾的所有azure广告组 微软的例子是列出所有以“结束”结尾的Azure广告组;“读者”;,azure,powershell,azure-active-directory,azure-powershell,Azure,Powershell,Azure Active Directory,Azure Powershell,我正在尝试列出显示名以“Reader”结尾的所有azure广告组 微软的例子是 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" 但当我尝试执行
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"
但当我尝试执行此操作时,结果为空,我缺少什么?请尝试下面的命令
Get-AzureRmADGroup | Where-Object {$_.DisplayName -like "*Reader"}
测试结果(为了加快操作速度,请使用-前5个
,您可以忽略它):
完美你就像上帝一样
Get-AzureRmADGroup | Where-Object {$_.DisplayName -like "*Reader"}