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.

Understanding the purpose of the pipeline

Understanding the purpose of the pipeline - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Understanding the purpose of the pipeline

- PowerShell isn't just about making commands with parameters and arguments. In fact, the real power to PowerShell that really ignites it is being able to connect commands together to do larger scale things. Let me give you a couple of examples to start out with. First of all, let's take a look at get-service. Now, I use this all the time 'cause it's a great command to use as examples and to be familiar with. Get-service, and I'm gonna say, "Give me the service called BITS." Right now, I can see that the status is running. Now, maybe I wanna start or stop this service. Let's do discovery with get-help and say, "Get-help, is there any cmdlets that will help me "with service?" Remember, I'm gonna use a singular version of the noun to help my search out. If you take a look right here, I've got Start-Service and Stop-Service. So I do have cmdlets for this. As an example, right now, I'm gonna clear the screen and it's running, let's stop it. Now, I could look at the help file for…

Contents