Get Hyper-V Host from inside the VM16 Sep, 2016 in Computer / Scripts by Imtiyaz Khan This simple one liner will tell you the computer name of the Hyper-V Host the VM is on View the code on Gist.