Chapter 3. Objects and PowerShell

In this chapter, we will learn about objects and how they relate to the PowerShell output. The specific topics in this chapter include the following:

  • What are objects?
  • Comparing DOS and PowerShell output
  • The Get-Member cmdlet

Objects all the way down

One major difference between PowerShell and other command environments is that, in PowerShell, everything is an object. One result of this is that the output from the PowerShell cmdlets is always in the form of objects. Before we look at how this affects PowerShell, let's take some time to understand what we mean when we talk about objects.

Digging into objects

If everything is an object, it's probably worth taking a few minutes to talk about what this means. We don't have ...

Get Getting Started with PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.