Summary: Learn how to easily expand objects in Windows PowerShell.
How can I expand an object that was returned by my Windows PowerShell expression?
Use the –ExpandProperty parameter from Select-Object to expand objects in Windows PowerShell.
This example expands the System.Diagnostics.ProcessStartInfo object returned by the Get-Process cmdlet:
Get-Process | Select-Object -ExpandProperty startinfo
0 comments