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 : |
Open Sharepoint management Shell to write the below script,
Get-SPSite -Identity http://<<your sitecollection url>>| Get SP-Web
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,
To know more about our sharepoint training..Please go through Sharepoint Online Training
Sorry, we aren't online at the moment. Please leave a message, will get back to you shortly.
Live Chat: Please Enter your details to chat with our operator.