PowerShell·PowerShell essentials

Objects and properties

Every command returns objects, so you can select, sort and format properties.

Beginner 10 min read Lesson 2 of 150 Challenge included
What you will be able to do
  • Inspect with Get-Member.
  • Select properties with Select-Object.
  • Sort with Sort-Object.

In plain English

Every command returns objects, so you can select, sort and format properties.

  • Inspect with Get-Member.
  • Select properties with Select-Object.
  • Sort with Sort-Object.
objects.ps1POWERSHELL
Get-Process |
  Sort-Object CPU -Descending |
  Select-Object -First 3 Name, CPU
Your turn

Explain it back

Easy

Answer from memory: Which cmdlet lists an object’s properties?

TEXT · starter
Your answer…
Check your understanding before moving on.
Knowledge checkQuestion 1

Which cmdlet lists an object’s properties?

Select an answer to continue
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Next: Filtering and pipelines
Lesson 2 of 150 · 0% of course