你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzureADGroup
获取组。
语法
Get-AzureADGroup
[-All <Boolean>]
[-Top <Int32>]
[-Filter <String>]
[<CommonParameters>]
Get-AzureADGroup
[-SearchString <String>]
[-All <Boolean>]
[<CommonParameters>]
Get-AzureADGroup
-ObjectId <String>
[-All <Boolean>]
[<CommonParameters>]
说明
Get-AzureADGroup cmdlet 获取 Azure Active Directory (AD) 中的组。
示例
示例 1:获取所有组
PS C:\>Get-AzureADGroup
ObjectId DisplayName Description
-------- ----------- -----------
00628948-b509-4362-aa73-380c4dbd2a44 ADSyncBrowse
02d91535-6c02-42bc-8ede-c57189320cc0 NewGroup2
093fc0e2-1d6e-4a1b-9bf8-effa0196f1f7 All Users
0dc8d2b2-d907-42e8-8558-0add236a8408 ADSyncOperators
0e6cf869-82ca-4647-b330-420b9a6f8ef7 Temporary users team (Dynamic group)
10d81ac5-1993-434b-b74c-1dcc4fd534ea HappyThanksgiving
1e94a453-2727-47f6-b59e-d86df3494312 European teams
23af9bad-83c5-4f03-a4e4-363bd892fc56 South-West Sales team
269f90d5-93dc-4c0a-8f22-bf23da4e0c3a All FTE employees
2b559810-b5de-41a8-913f-c45a55adfc25 Exchange Trusted Subsystem This group contains Exchange servers that run Exchange cmdlets on behalf of users via the management service.
Its members ...
31f1ff6c-d48c-4f8a-b2e1-abca7fd399df Intune Administrators Intune Device Administrators
364e009b-fbe4-4aef-b230-2e9e8f2fe636 ADSyncPasswordSet
3d3f7196-3ec8-4076-a232-1ca30b655d1a WinRMRemoteWMIUsers__ Members of this group can access WMI resources over management protocols (such as WS-Management via the Windows Remote Man...
3df5d8b7-8af4-4536-90d6-cde4c878e252 ADSyncOperators
4370f0a6-78e9-44cb-b722-29cb5307fdba Exchange Servers This group contains all the Exchange servers. This group shouldn't be deleted.
47a1bff5-f449-4bfc-8772-b1515c57fec5 ExchangeLegacyInterop This group is for interoperability with Exchange 2003 servers within the same forest.
This group should not be deleted.
示例 2:获取包含搜索字符串的组
PS C:\>Get-AzureADGroup -SearchString "All"
ObjectId DisplayName Description
-------- ----------- -----------
093fc0e2-1d6e-4a1b-9bf8-effa0196f1f7 All Users
此命令获取在其显示名称中以文本 All 开头的组。
示例 3:获取对属性的组筛选
PS C:\>Get-AzureADGroup -Filter "startswith(Displayname,'Exchange')"
ObjectId DisplayName Description
-------- ----------- -----------
4370f0a6-78e9-44cb-b722-29cb5307fdba Exchange Servers This group contains all the Exchange servers. This group shouldn't be deleted.
47a1bff5-f449-4bfc-8772-b1515c57fec5 ExchangeLegacyInterop This group is for interoperability with Exchange 2003 servers within the same forest.
此命令获取 Displayname 属性以“Exchange”开头的组。
参数
-All
如果为 true,则返回所有组。 如果为 false,则返回由 Top 参数指定的对象数
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Filter
指定 oData v3.0 筛选器语句。 此参数控制返回的对象。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-ObjectId
Azure Active Directory 中组的唯一标识符 (ObjectId)
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-SearchString
指定搜索字符串。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Top
指定要返回的最大记录数。
类型: | Int32 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |