From the course: PowerShell 7 Essential Training

Unlock the full course today

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

Understand PowerShell objects

Understand PowerShell objects - PowerShell Tutorial

From the course: PowerShell 7 Essential Training

Start my 1-month free trial

Understand PowerShell objects

- [Instructor] Now one of the things in PowerShell which is nice is that everything that we return from a command is ultimately an object of some description. So for example, if I type get dash service it's going to give me all the list of the services that are currently running on my windows machine. Now, what we can do with this is I can say, get service again and then notice we have properties that are available which is nothing new 'cause we've already looked at this before. But I'm going to just filter out to DNS cache. And then I'm going to do a pipe command here and do what's called get member. Now the get member command will give me all of the details about the object that I return. So what we can see here is I went and looked for the DNS cache service which runs locally on my windows machine. And I use get member, get member will give me everything that's part of this object. So for example, you can see the…

Contents