Select the values of one property on all objects of an array in PowerShell
I think you might be able to use the ExpandProperty parameter of Select-Object. For example, to get the list of the current directory and just have the Name property displayed, one would do the following: ls | select -Property Name This is still returning DirectoryInfo or FileInfo objects. You can always inspect the type coming … Read more