Yes, that shows up as a table.
I copied and pasted your code.
Yes, that shows up as a table.
I copied and pasted your code.
How about this:
$Report |
Select-Object -Property 'Used Space', 'Used Space %', 'Allocated Space (GB)', 'Max Storage (GB)' |
Format-Table
That worked perfectly! Much appreciated!
One last question, any idea why there are some blank rows on the table:
Used Space Used Space % Allocated Space (GB) Max Storage (GB)
---------- ------------ -------------------- ----------------
0 13132 -9.31322574615479E-10
72.6 24 78.83 300
80.39 40 93.28 200
236.46 15 236.48 1536
616.78 77 732.05 800
0.04 0 0.08 100
0 17572 -9.31322574615479E-10
690.93 58 1200 1200
0 0 1004
33.71 67 34.44 50
0 3634.91 -9.31322574615479E-10
0.04 2 0.05 2
0.03 2 0.05 2
3.52 11 14.47 32
0 17120 -9.31322574615479E-10
0 0 245760
No.
It could be something wrong in your logic or you have a command inside the loop outputting something what does not fit to the PSCustomObject.
Depending on the amount of objects in your $Report
you could try to output every single object as soon as it is created and inspect which one comes out empty.
Thx for all of your help with this!