powershell - How to `select` to an array of strings -
when use select-object name cmdlet seems create new object single name property on it.
i want pipe selection other cmdlets take string.
how can bunch of objects , "select property x , property values array or collection of values"?
you can use expandproperty parameter this. switch means instead of returning object properties listed on (default) -properties parameter, value of single property listed under -expandproperty parameter returned.
nb: can use alias, expand parameter.
example:
get-process | select-object -expandproperty processname related documentation:
Comments
Post a Comment