Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

table output

$
0
0

Hi

How do I add the variables into one variables $table?

foreach($vhdd in $vhdds){
  $hddlabel = $vhdd.extensionData.DeviceInfo.Label
  $hddSize = $vhdd.CapacityGB;
  $hddFilePath = $vhdd.FileName

}

Output:

HDDLABEL      HDDSIZE       HDDFILEPATH

abc               60               c:\

efg                20               d:\


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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