Get-AzureADGroup
透過 Microsoft Graph) 取得群組 (。
語法
Get-AzureADGroup
[-All <Boolean>]
[-Top <Int32>]
[-Filter <String>]
[<CommonParameters>]
Get-AzureADGroup
[-SearchString <String>]
[-All <Boolean>]
[<CommonParameters>]
Get-AzureADGroup
-ObjectId <String>
[-All <Boolean>]
[<CommonParameters>]
Description
Get-AzureADGroup Cmdlet 會使用 Microsoft Graph 取得 Microsoft Entra 識別符中的群組。
範例
範例 1:取得所有群組
PS C:\>Get-AzureADGroup -All:$true
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
如果為 true,則傳回所有群組。 如果為 false,則傳回 Top 參數所指定的物件數目
類型: | Boolean |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-Filter
指定 oData v3.0 filter 語句。 此參數可控制傳回的物件。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ObjectId
Microsoft Entra ID 中群組的唯一標識符, (ObjectId)
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-SearchString
指定搜尋字串。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-Top
指定要傳回的記錄數目上限。
類型: | Int32 |
Position: | Named |
預設值: | 100 |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
備註
請參閱 Get-AzureADGroup 至 Microsoft Graph PowerShell 的移轉指南。
此 Cmdlet 會使用 AzureAD Graph,而不是 MSGraph。 使用 MSGraph 的命令格式為 *-ADMS*。 如需命名慣例的詳細資訊,請參閱 #AzureAD PowerShell 2.0 預覽版的新增強功能。管理動態群組等等!