 <p>You can iterate over the returned drives from your WMI query and add the deviceid and "Disk GB" results to a string value. Then you can write the resulting string value to the Excel cell. One way to do this would be like this:</p> <pre><code>$a = New-Object -comobject Excel.Application $a.Visible = $True $b = $a.Workbooks.Add() $c = $b.Worksheets.Item(1) $outputstring = "" foreach ($drive in $driveinfo) { $outputstring += "$($drive.deviceid) $($drive."Disk GB") GB`n" } $c.cells.item(1,1) = $outputstring </code></pre>