Hyper-v, Powershell : Get the hostname of the server hosting your VM

I always forget this so:

(get-item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")