Very well explained. Thanks for this great video :)
@TheAusafonly3 жыл бұрын
Your quality is you go over one level to describe things which we always ignore to read in documentation 😜
@asmarfontenot4 жыл бұрын
Hi Trevor, Awesome tutorial. Yes, it goes a little into the weeds a little bit...but as long as an experienced guide is leading you, going into the weeds a little bit isn't too bad. I think when learning it's important to understand at least a little bit of the "big picture" or what's going on "under the covers". Investing a few minutes to get a basic understanding of the CONTEXT of what you are doing helps out a lot more in the long run over just learning HOW to do something with little to no understanding. But I digress... Quick observation...I've been learning and using Powershell at work for about 4 yrs now (with some of your videos helping me along the way. Thanks!). I'm no stranger to advanced functions and using the pipeline (although I always forget the parameter attributes needed to enable it, hence how I ran across this video). In all this time, I've never run across using the $input automatic variable. Just using the parameter variable in the Process block works fine and is how most people will see it in the wild. It is interesting to know though, as $input is probably how it actually works. I imagine powershell 'knows' to convert the calls to the parameter variable in the Process block to the current object in the $input variable. If I'm setting up pipeline support, I usually also setup accepting an array for the parameter using a for-each block as well, so there's two ways to feed multiple items into the functions, per this old Don Jones post: devblogs.microsoft.com/scripting/use-the-pipeline-to-create-robust-powershell-functions/
@markchadwick772 жыл бұрын
Great video. Thanks. This begs the question, why didn’t they make the process block the default? 🤔
@djust2703 жыл бұрын
Just to clarify, if you want to support pipeline input as well as be able to declare the message variable, the process block would be something like this: process { if ($input){Write-Output $input} else {Write-Output $Message} }
@didier_lu5 жыл бұрын
Great explanation and great tutorial, thanks a lot for sharing!
@Webtroter5 жыл бұрын
Hi Trevor, Really liked your video. But I'd like one about the function's output for a pipeline processing.
@andreasmewald24395 жыл бұрын
Thx, for the video. Actually I'm looking for some resource to get deeper into Powershell, are there some books, websites you can recommend. Thx
@jeremypenning6285 жыл бұрын
i found on udemy the training Advanced Scripting & Tool Making using Windows powershell
@sudhirsharma68075 жыл бұрын
why does he look like Eli the Computer Guy :-) BTW amazing video
@ericpode36134 жыл бұрын
Nice video apart from the intrusive adverts! I appreciate you should make money from your knowledge but they suddenly and annoyingly appear in the middle of a sentence. Is there anything you can do about that?