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.

Selecting the information you want

Selecting the information you want - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Selecting the information you want

- I wanna start manipulating objects so that I can select only the property information that I wanna see. In other words, I don't wanna see the default view. So if I do Get-Service, and I'm gonna filter this a little bit, just on bits, so that it doesn't take up all of my screen, it's got three columns of information, Status, Name and DisplayName. Well, you know what, I've decided that the only thing I really wanna see in my report is Name and Status. So what I need to know is, what are the true property names of those columns? Sometimes they're the same, sometimes they're not, so you always wanna check. I also wanna see if there's any other property information that I might wanna know. Any time I wanna know everything there is to know about an object, I'm gonna pipe it to GM. So I'm gonna pipe it to Get-Member, the alias being GM, and let's see here, I want Status, so the name of the property is actually Status. And also, if I go up here to the top, there is a property, and remember,…

Contents