One of the most common tasks you will do in PowerShell is outputting data. Whether you want to control output to the screen or output to a file PowerShell can help. In this video we will take a look at some common methods to output data with PowerShell
- [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 format-list.…Either way, whichever one you choose,…
Matt then dives into PowerShell's functions and What If statements, working with output, and coding in the Integrated Scripting Environment (ISE). The course wraps up with some tips on using PowerShell for both on-premises and cloud deployments involving Office 365 and Azure.
- Identify the purpose of a delimiter.
- Recognize the tools needed to build a command using the ISE.
- Identify the options to use when running Get-Service from a remote computer.
- Recognize the capabilities of four cmdlets.
- Explain how to transfer aliases from a file into PowerShell.
- Determine if a cmdlet will generate an error when executed.