From the course: Learning PowerShell

Unlock the full course today

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

Working with output

Working with output - PowerShell Tutorial

From the course: Learning PowerShell

Start my 1-month free trial

Working with output

- [Voiceover] Now let's take a look at one of the more common things you'll do inside of PowerShell, and that's actually sending out output and controlling the formatting of the output as you work with it. It's also one of the common uses for the pipe operator that we have. So we have our get-service commandlet, so I'm gonna run that down here in my command pane, just to remind us what it looks like. I run get-service, and just fire that in, and notice it gives me those three properties: status, name, and displayname, for us to actually work with inside of here, but remember, in other videos I talked about get-member, all the other properties are there. Well how do you get those to show up in the table? Well, we can actually do that with another commandlet, called format-list, we also have an alternative, format-table. By the way, the default output for get-service is the table format, so if you want a list, and I'll show you what that looks like here in a second, you can use…

Contents