Hi,
I am trying to make a script that lists VMs with large harddisks in an easy way.
I found what I was looking for in a one liner, which does what I want - but it would be nice to have a script that gives a report.
this lists size of disk and the path to the diskfile.
get-vm | get-harddisk | ?{$_.CapacityLB*1kb -gt 50gb
Since I am not a experienced scripter, I would appreciate some help.
edit: would also be excellent, to list VMs with multiple harddisks that together gives, lets say 50gb.
ex: Vm1 has three harddisks, one is 30Gb one is 20gb and one is 5 gb. Alltogether this gives a total harddisk capacity of 55GB.