From the course: PowerShell 5 Essential Training

Unlock the full course today

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

Understanding the importance of objects

Understanding the importance of objects - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Understanding the importance of objects

- Earlier in this course we started to work with a pipeline and this concept of objects that are crossing the pipeline. Just like with get-service, if I do -name bits I grab a service. It's running, I wanna stop it. I can pipe it to stop-service and how this is working is because the object for that bit service is being sent across this pipeline to the cmdlet stop-service that is executing that stop-service capability and it's stopping the service. Let's dive a little bit further into the importance of what objects are. Windows is an object-oriented and an object-based operating system; This makes it different from Unix. I think that, personally, we should be embracing both operating systems. All businesses use them, and there's advantages to using both operating systems. But this is one of the advantages that Windows has that makes it so much easier to work with, especially with PowerShell. It has objects. Let me give you an example. If I do get-service, everything being listed right…

Contents