Skip to content

Commit 094969a

Browse files
authored
Adding in an example using the -Filter parameter.
Adding in a filter using the -Filter parameter as these can be confusing.
1 parent 32de855 commit 094969a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

azureadps-2.0-preview/AzureAD/Get-AzureADGroup.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ The **Get-AzureADGroup** cmdlet gets a group in Azure Active Directory (AD).
3939
```
4040
PS C:\>Get-AzureADGroup
4141
42-
4342
ObjectId DisplayName Description
4443
-------- ----------- -----------
4544
00628948-b509-4362-aa73-380c4dbd2a44 ADSyncBrowse
@@ -73,6 +72,17 @@ ObjectId DisplayName
7372

7473
This command gets the groups that start with the text All in their display names.
7574

75+
### Example 3: Get groups filtering on an attribute
76+
```
77+
PS C:\>Get-AzureADGroup -Filter "startswith(Displayname,'Exchange')"
78+
79+
ObjectId DisplayName Description
80+
-------- ----------- -----------
81+
4370f0a6-78e9-44cb-b722-29cb5307fdba Exchange Servers This group contains all the Exchange servers. This group shouldn't be deleted.
82+
47a1bff5-f449-4bfc-8772-b1515c57fec5 ExchangeLegacyInterop This group is for interoperability with Exchange 2003 servers within the same forest.
83+
```
84+
This command gets the groups where the Displayname attribute starts with "Exchange".
85+
7686
## PARAMETERS
7787

7888
### -All

0 commit comments

Comments
 (0)