From the course: Learning PowerShell for Windows Server Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

About objects

About objects

From the course: Learning PowerShell for Windows Server Administration

Start my 1-month free trial

About objects

- [Instructor] Early on in this course, we saw that PowerShell could return what appears to be tables full of data by running a single expression. When we looked at the contents of the PSVersion table, we saw a list of property details that are contained in that variable. Another good example of this is the Get-Module commandlet. Running this commandlet displays the module types, versions, and names of all of the modules currently loaded. It even includes a list of all of the included commands that are added to PowerShell by this module. This table is what is displayed, but it isn't the totality of what was retrieved when we ran that commandlet. PowerShell doesn't work in lists. It works in objects. For those of you that may be new to programming or scripting, let's take a moment to make sure that we're on the same page as to what an object really is. What can make objects hard to understand at first is how broadly the term is used. An object is any contained block of code or…

Contents