Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Expand Objects in PowerShell

$
0
0

Summary: Learn how to easily expand objects in Windows PowerShell.

Hey, Scripting Guy! Question How can I expand an object that was returned by my Windows PowerShell expression?

Hey, Scripting Guy! Answer 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


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>