PowerShell Easy · Lesson 1 · On the house

Objects vs text

Property bags beat string scraping. Lesson 1 is free — on the house.

Lessons · PowerShell Easy · Lesson 1 of 10 · On the house

Objects vs text

Property bags beat string scraping.

Illustration for PowerShell
Lesson 1 is on the house.

Classic shells pass text; PowerShell passes .NET objects with types and properties.

Get-Member (-MemberType Property) reveals what you can Select or Where on.

Formatting for the screen is not the object — Format-* output is for eyes, not further work.

When you must parse text, ConvertFrom-String / regex exist — prefer native objects first.

Piping objects preserves Length, Id, Status — no column-position guessing.

objects

Get-Process | Get-Member -MemberType Property
Match this when you type.

Quiz

What does Get-Member show?

Quiz

Why are objects better than text columns here?

Quiz

What should you avoid mid-pipeline if you need more processing?

Check

Match the still for: Objects vs text.

Open-book: the answers are on this page. Pass every quiz and check (4) to mark the lesson done. This visit: 0/4.