Windows PowerShell Fundamentals Chapter 04 - The PowerShell Pipeline

preview_player
Показать описание
Chapter 4 of 16

These videos were developed for PowerShell version 1, but the material is still valid.

Learn how to use Windows PowerShell -- whether you are administering Windows, Exchange Server, or any other PowerShell-enabled product. PowerShell MVP and guru Don Jones, one of the world's most experienced PowerShell instructors, guides you through PowerShell's basics -- assuming no prior experience. You will learn about cmdlets, the pipeline, WMI and ADSI within Windows PowerShell, and much more. Don's conversational style, conceptual animations, extensive demonstrations, and real hands-on exercises help you learn quickly and effectively.
Рекомендации по теме
Комментарии
Автор

hell yeah my man loves powershell and he doesn't care who knows it

shiretsu
Автор

at 11:30 - each line of that file becomes an object - but the String object, and not the File object, right? Since I checked it with Get-Member cmdlet, they had different set of members.

lex-euler
Автор

I think he needs to clarify something a little better. At the end, when he says "if we look at the help copy-item -full" and says the "SOURCE" parameter accepts pipeline input, he means the -Path parameter. This hung me up for a long time! The word "Source" is nowhere. It should be assumed to be the -Path. It wouldn't have been so hard to understand if he would have clarified that. Otherwise, great tutorial.

PatrickLibby
Автор

I came across the problem that some commands can automagically work on multiple pipeline objects while some need a for loop.
This is because of the type of output and input that objects create.
I encountered this when I was trying to pipe a list of filenames into copy-item

gareginasatryan
Автор

Can you tell me.. in a pipeline if a GPS | sort .. do all the output of GPS goes to the next pipeline or it will go one by one.

Thanks in advance

sambithdas
Автор

Get-Service | Where-Object {$_.Status -eq "Running"}
This needs a { }, not ( ),
ConvertTo-Html, not Convert To-HTML

at least for this:
PS C:\> $PSVersionTable.PSVersion

Major Minor Build Revision

5 1 14393 693



VERY good series for learning this from scratch!!! Thank you for making this available.

sergeb
Автор

so basically powershell is microsoft reimplementing bash :P

ancientapparition