CMD Master
Back to Blog
•Arnošt Havelka

Select Properties with Select-Object

Filter and display specific properties using Select-Object.

Start Interactive Lesson
Select Properties with Select-Object

The Select-Object cmdlet lets you choose which properties to display from objects. Keep output focused and readable.

Selecting Specific Properties

Try the command

Select specific properties!

Build the command
Get-ChildItem[arguments]|Select-Object[arguments]
Get-ChildItem|Select-Object
Terminal
PS C:\Users\Student>Get-ChildItem | Select-Object -Property Name
Documents Downloads Desktop welcome.txt select-me.txt

Focused Output

Terminal
file1.txt file2.txt
PS C:\Users\Student\Documents\SelectDemo>Get-ChildItem

Knowledge Check

1 / 1

How do you select only the Name property?

References

These documentation links provide authoritative details for the commands used in this article.

Up Next

Filter with Where-Object

Use Where-Object to find items matching conditions.