PowerShell for Windows Admins

Sep 21 2011   2:20PM GMT

select-object quirk



Posted by: Richard Siddaway
PowerShell 3, PowerShell v2

I was working with the new CIM cmdlets in PowerShell 3 CTP and mistyped a command (as I thought)

Get-Cimclass win32_operatingsystem | select -ExpandProperty methods | select -f 1 select -ExpandProperty Qualifiers

 

My surprise was because of the two uses of select without a pipe between them.  It works, I don’t know why – but I don’t recommend it Smile

Comment on this Post

Leave a comment: