Importance of Pipeline Operators in Powershell Script

Importance of Pipeline Operators in Powershell Script

 

Pipeline operators are one of the most important operators in Powershell.It’s used to combine series of commands,sending the result of one command to the next.Each command in the pipeline receives its input from previous command.

Pipeline operator symbol : |

Example in sharepoint Management Shell :

 

Open Sharepoint management Shell to write the below script,

Get-SPSite -Identity http://<<your sitecollection url>>| Get SP-Web

SharePoint Pipeline Operator in Powershell script

In the above example we are combining two commands,Left side command returns a site collection and that ouput will be passed to next command through pipeline operator.

So finally the output is collection of all the websites in the above mentioned site collection.

Please find some more articles related to sharepoint,

Sharepoint 2013 apps vs Sharepoint webparts

To know more about our sharepoint training..Please go through Sharepoint Online Training

This content shows up if there are no widgets defined in the backend.
0
Connecting
Please wait...
Send a message

Sorry, we aren't online at the moment. Please leave a message, will get back to you shortly.

* Your name
* Email
* Phone
* Please enter your message
Chat with us!

Live Chat: Please Enter your details to chat with our operator.

* Your name
* Email
Phone
* Please enter your message
We're online!
Feedback

Help us help you better! Feel free to leave us any additional feedback.

How do you rate our support?