This PowerShell script can be used to identify the Physical host name of a Virtual server. You can run this script from a remote machine. This is an update to one of one old scripts - http://portal.sivarajan.com/2010/01/identify-physical-host-of-virtual.html.
Note: This is script is only works on Microsoft virtual/Hyper-v servers and products. If have you some other virtualization solution, the result may not be accurate.
Input - Servers.csv - Contains the sever name.
You will see status update on the screen as shown in the following screenshot:
Output – VM_ServerInfo.CSV – This out file contains all virtual Guest and Host information.
Download – You can download this script form the following locations:
TechNet Script Gallery - http://gallery.technet.microsoft.com/scriptcenter/4a6c40c6-9e16-4dd1-bea8-356a7d7735cf