Asked by cj


1.
Get-Process | Select-Object -Property Name, Id

2.
Get-Process | Select-Object -Property Name, *Memory

3.
Get-Process | Select-Object -Property * -Exclude *Memory*

4.
Get-ChildItem C:\ -Recurse | Select-Object -First 2

5.
Get-ChildItem C:\ | Select-Object -Last 3

6.
Get-ChildItem C:\ | Select-Object -Skip 4 -First 1

7.
Get-ChildItem C:\ | Select-Object -ExpandProperty FullName

Limit the properties returned from a command using wildcards



Skip items at the beginning. This example returns the fifth item.


List everything but a few properties



Get the first few objects


Expand individual properties


Limit the properties returned by a command by name



Get the last few objects

Answers

There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions