Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

get-vm and get-vhd to derive per vm disk stats

$
0
0

(get-vm VMname | select-object vmid | get-vhd).Filesize works fine when I run it on the host where the VM is running

(get-vm VMname -ComputerName HypervHost | select-object vmid | get-vhd).Filesize fails when I run it against a remote system with the error:

get-vhd : Hyper-V was unable to find a virtual machine with the given criteria.

I'd appreciate any feedback.

Blake



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>