Sunday, January 3, 2010

Identify the Physical Host of a Virtual Server using PowerShell

Here is a PowerShell script you can use to identify the Physical host name of a Virtual server. 

$regPath= "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters"
$regValue = get-itemproperty -path $regPath
$regValue | fl "VirtualMachineName","PhysicalHostNameFullyQualified"

image

In this script I am looking for the values in the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters

image

Download: You can download the script from this location

Updated script - http://portal.sivarajan.com/2011/04/identify-physical-host-of-virtual.html

0 comments:

Post a Comment

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More