Skip to content

Commit 0785f78

Browse files
committed
Corrected the example in the Select parameter section
1 parent 5b97f6b commit 0785f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

microsoftgraph/docs-conceptual/use-query-parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Microsoft PowerShell SDK cmdlets may support one or more of the following OData
2727
| [-Filter](#filter-parameter)| Filters results (rows)|`Get-MgUser -Filter "startsWith(DisplayName, 'Conf')"`|
2828
| [-OrderBy](#orderby-parameter)| Orders results|`Get-MgUser -OrderBy DisplayName`|
2929
| [-Search](#search-parameter)| Returns results based on search criteria|`Get-MgUser -ConsistencyLevel eventual -Search '"DisplayName:Conf"'`|
30-
| [-Select](#select-parameter)| Filters properties (columns)|<code>Get-MgUser &#124; Select DisplayName, Id</code>|
30+
| [-Select](#select-parameter)| Filters properties (columns)|<code>Get-MgUser -Property Id, DisplayName &#124; Select Id, DisplayName</code>|
3131
| [-Top](#top-parameter)| Sets the page size of results. |`Get-MgUser -Top 10`|
3232

3333
## Count parameter
@@ -168,7 +168,7 @@ Use the `-Select` query parameter to return a set of properties that are differe
168168
For example, when retrieving a list of all the users, you can specify that only the **Id** and **DisplayName** properties be returned:
169169

170170
```powershell
171-
Get-MgUser | Select Id, DisplayName
171+
Get-MgUser -Property Id, DisplayName | Select Id, DisplayName
172172
```
173173

174174
```Output

0 commit comments

Comments
 (0)