title: Find virtual host for VM running Windows Server 2012 Standard (not R2)
body: <p>I can find the virtual host to all of my Windows Servers (2003-2012 R2) using this in a command line:</p>
  
  <pre><code>reg query "\\*MACHINENAME*\HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters" /v HostName
  </code></pre>
  
  <p>However, I have one server that is running 2012 Standard and it does not have this reg key.</p>
  
  <p>I verified that the server is a VM using:</p>
  
  <pre><code>systeminfo | findstr /c:"Model:" /c:"Host Name" /c:"OS Name"
  </code></pre>
  
  <p>However, I'd really like to know where this VM is being hosted. I've investigated other methods of determining the host, but they all focus around reading the reg key that this VM does not have for some reason.</p>
  
  <p>Is there a way to determine where this VM is hosted without that reg key? We are using Hyper-V and have no reason to suspect that this VM is a one-off snowflake.</p>