Skip to content

Commit 4bd74ee

Browse files
authored
Example added and PR reviews addressed
1 parent ff413d8 commit 4bd74ee

File tree

1 file changed

+12
-4
lines changed
  • sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell

1 file changed

+12
-4
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOSite.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,28 +125,36 @@ This example uses server side filtering to return sites matching 18.
125125

126126
### EXAMPLE 8
127127

128+
```powershell
129+
Get-SPOSite -Filter { IsAuthoritative -eq true }
130+
```
131+
132+
This example uses server side filtering to return Authoritative sites (i.e., sites that have the IsAuthoritative property set to true).
133+
134+
### EXAMPLE 9
135+
128136
```powershell
129137
Get-SPOSite -Limit ALL | ?{$_.IsTeamsConnected -eq $true}
130138
```
131139

132140
This example uses client-side filtering to return a list of sites connected to Microsoft Teams.
133141

134-
### EXAMPLE 9
142+
### EXAMPLE 10
135143

136144
```powershell
137145
Get-SPOSite -Limit ALL | ?{$_.IsTeamsChannelConnected -eq $true}
138146
```
139147

140148
This example uses client-side filtering to return a list of sites connected to a Microsoft Teams Private or Shared channel.
141149

142-
### EXAMPLE 10
150+
### EXAMPLE 11
143151

144152
```powershell
145153
Get-SPOSite -Limit ALL -GroupIdDefined $true
146154
```
147155
This example uses server-side filtering to return all sites that have an associated Microsoft 365 Group.
148156

149-
### EXAMPLE 11
157+
### EXAMPLE 12
150158

151159
```powershell
152160
@@ -236,7 +244,7 @@ Accept wildcard characters: False
236244
> Applicable: SharePoint Online
237245
238246
Specifies the script block of the server-side filter to apply. The type must be a valid filter name and value must be in the form `{ PropertyName <operator> "filterValue"}`. Valid operators are as follows: -eq, -ne, -like, -notlike.
239-
Currently, you can filter by these properties: Owner, Template (can be used to filter if it is the only property present in the filter), LockState, Url, IsAuthoritative (It only supports comparision operators -eq and -ne. For eg: `{IsAuthoritative -eq true}`).
247+
Currently, you can filter by these properties: Owner, Template (can be used to filter if it is the only property present in the filter), LockState, Url, IsAuthoritative (only supports comparison operators -eq and -ne).
240248
Using the -or operator to include an additional filter is not supported.
241249

242250
Note: The operator values are case-sensitive.

0 commit comments

Comments
 (0)