July 2018
Beginner
552 pages
13h 18m
English
We will start with the most important operator for PowerShell: the pipeline operator. It is getting a separate section, but it would normally be subordinated to the special operators. This might be the biggest challenge for most people. It can be extremely powerful but, sometimes, it can be very hard to debug the code if it is not working as intended. In general, a pipeline sends the output of the preceding function or cmdlet to the next one. Its output is bound to the parameters of the following cmdlets, by type. The pipeline always executes from left to right. Let's take a look at how this appears, in a very simple way:
# Gets all services and pipes them into the cmdlet Stop-Service# By using the flag -WhatIf it is not ...Read now
Unlock full access