From the course: PowerShell 5 Essential Training

Unlock the full course today

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

Working with files and printers

Working with files and printers - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Working with files and printers

- Often when you're working with PowerShell, you're gonna get a lot of data on the screen, and you're gonna wanna store that to a file. Let's start by storing it to a text file and maybe sending it out to a printer. We're gonna use the pipeline for that. First of all, let's see if I can find some commandlets ... I'm feeling lucky today ... That will let me work with files. Get-help on file, and wow. There's a lot of them. I'm actually gonna give you a tip here. It's, you become more accustomed to this, but what I'm looking for is a particular verb. I've gotten accustomed to looking for "out," as in "out files." Here's what I'm gonna do. Rather than look for "file" ... Because I wanna be able to send things out to a file and a printer, what do you say we look for "out"? Now, I still would have found them by looking at "file," and I could have also done this for *printer* or *print*. Now, there's a lot of things that came up here. Boy, I really need to refine my search. Let's go ahead…

Contents