What’s the desired behavior of inputObject?
In response to Kirk Munro’s comment on my Writing Cmdlets for the PowerShell Pipeline post: You know, I’ve looked at your articles about cmdlets/functions in the pipeline and I feel you’re missing something. The purpose of the InputObject parameter is to pass in a collection as a single object. This is as opposed to using [...]
About_Filter considered Harmful
Someone asked a question in the #PowerShell channel on irc.FreeNode.net today about how to use filters, and pasted this an example like this: filter process-a-m { $_.processname -like "[a-m]*" } Get-Process | where {process-a-m} The question was: why doesn’t this have any output? Well, the answer is: it can’t have any output. The filter [...]