Chapter 1. Objects and Object Types

Starting a journey in an unknown programming language and an unfamiliar environment requires that we start with the fundamentals. What are the most basic, the absolutely essential parts of any environment? Variables of course! Variables are those tiny virtual boxes that hold our data and let us mold it into whatever we like. PowerShell is unusual in that all variables hold references to objects. All objects conform to a known, published contract; an object contains a set of operations, usually called methods, which allow us to execute actions. Additionally, PowerShell objects expose properties that allow us to get and set object attributes.

PowerShell is based on the Microsoft .NET framework, but a fully featured ...

Get Pro Windows 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.