Happy New Year! Ok, that is a bit late. I'm getting around to catching up on some questions from my classes last year. Here is a good one. What Will a Cmdlet Accept Through the PowerShell Pipeline? Well, that is a good question. How a object is piped from one cmdlet to another is a touchy subject in my PowerShell classes. This extremely powerful feature needs to be used, but the research that goes into it for new PowerShell developers can be a bit complex. To help out, I built a cmdlet to read the help files of a cmdlet or script and determine what parameters accept pipeline input ByValue or ByPropertyName and what data type they require. All of these are required to help the developer understand if they can pipe their objects to a cmdlet. Here you go! Have fun with it. Function Get-PipelineInfo { [ CmdletBinding () ] Param ( [ String ] $Cmdlet ) Write-Verbose "Pipeline informaiton for $Cmdlet ." ( Get-Help $Cm
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.