From the course: PowerShell 7 Essential Training

Unlock the full course today

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

Understand cmdlet syntax

Understand cmdlet syntax - PowerShell Tutorial

From the course: PowerShell 7 Essential Training

Start my 1-month free trial

Understand cmdlet syntax

- [Instructor] A critical piece of utilizing PowerShell is understanding the syntax. PowerShell is designed around the idea of getting, setting, starting, stopping, outputting or even creating new objects of some description. Each pipeline operator can be utilized to send the result of a proceeding command to the next command. Multiple pipes can then be used to join specific commands together. Now, you may wonder what the pipe command is. It's one that appears above the Return or the Enter key on the keyboard. You can then use complex commands and chain or pipeline that is composed of a series of simple commands. Now to see how this would work, we can, for example retrieve a specific service. So if I choose Get-Service, which would exist on a specific machine, and you'll notice that I'm using a pipe command and right after it, I'm saying Sort-Object. So I'm passing one command output into a second command output, and…

Contents