File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
microsoftgraph/docs-conceptual Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Microsoft PowerShell SDK cmdlets may support one or more of the following OData
27
27
| [ -Filter] ( #filter-parameter ) | Filters results (rows)| ` Get-MgUser -Filter "startsWith(DisplayName, 'Conf')" ` |
28
28
| [ -OrderBy] ( #orderby-parameter ) | Orders results| ` Get-MgUser -OrderBy DisplayName ` |
29
29
| [ -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 | ; Select DisplayName, Id </code >|
30
+ | [ -Select] ( #select-parameter ) | Filters properties (columns)| <code >Get-MgUser -Property Id, DisplayName | ; Select Id, DisplayName </code >|
31
31
| [ -Top] ( #top-parameter ) | Sets the page size of results. | ` Get-MgUser -Top 10 ` |
32
32
33
33
## Count parameter
@@ -168,7 +168,7 @@ Use the `-Select` query parameter to return a set of properties that are differe
168
168
For example, when retrieving a list of all the users, you can specify that only the ** Id** and ** DisplayName** properties be returned:
169
169
170
170
``` powershell
171
- Get-MgUser | Select Id, DisplayName
171
+ Get-MgUser -Property Id, DisplayName | Select Id, DisplayName
172
172
```
173
173
174
174
``` Output
You can’t perform that action at this time.
0 commit comments