cmjellis
Enthusiast
Enthusiast

select parameters are wrong - looking for server - reports servername and harddisk

get-vm cbslnpcs1 | get-harddisk | select VM, CapacityGB

VM CapacityGB
-- ----------
??         60
??         40
??         20

Why don't i see the VM server Name? is it because Select VM is in third pipe and the query is harddisk and harddisk does not have a vm attribute associated with it? How do i get the third section (Select VM) to get-VM first section to report VM