how to format a row

I would like to tidy up some data that comes from a get-datastore from vshere 5 i am selecting 'Name','CapacityGB','FreeSpaceGB'

i want to round the CapacityGB','FreeSpaceGB' but as i pass it to a function that does other tasks, which work fine.

i need to edit the data then pass the $contents to the function how do i create a variable with rows in i have tried adding the data to an array does not work tried a hash table does not work how do i make rows?

this then gets pass to the function  to insert into word

$cell.Text=$contents[$row-2].($columnProperties[$col-1]).tostring()

July 31st, 2013 6:46am

Can you try restating the question?  its unclear what you want.
Free Windows Admin Tool Kit Click here and download it now
July 31st, 2013 9:46am

Hi,

It is hard to understand the issue as there is only one line of your code which is with many vriables we don't know what they stand for. Pleaes post more details here so that we could go further with this thread.

In addition, if you want to save those data in a csv file, then just append export-csv command after select-object command.

Regards,

Yan Li 

August 2nd, 2013 10:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics