Wednesday, April 20, 2011

Identify the Physical Host of a Virtual Server – Updated

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 -

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 -


Hi Santosh,
Trying to run your commant but i'm getting this error. Can you pin point any solution?

You cannot call a method on a null-valued expression.
At line:17 char:34
+ $regKey= $reg.OpenSubKey <<<< ("SOFTWARE\\Microsoft\\Virtual Machine\\Guest\\Parameters")
+ CategoryInfo : InvalidOperation: (OpenSubKey:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Do you have a valid computer name is the input file? Servers.csv

Make sure you have ServerName as the header.

I am getting the same error as JZ and ServerName is in the header of the csv

Also, I confirmed Remote Registry Services are running on the machines I am trying to access.

Here is a copy of the results:
Checking RANDOMSERVER Server.....
You cannot call a method on a null-valued expression.
At line:13 char:13
+ $regKey= $reg.OpenSubKey("SOFTWARE\\Microsoft\\Virtual Machine\\Gues ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Complete. Review C:\Scripts\VM_ServerInfo.csv file for the result

EmailOcean is a brand new platform to cater to your email marketing needs.

It has been launched under the patronage of KOONK TECHNOLOGIES PVT. LTD. and is one of a kind platform for email marketing.

There is not point in harping on about the advantages of email marketing,as at this point in time,email marketing is the sole way of marketing or promoting your product,service or message in an efficient and quick manner.

EmailOcean provides you with the following advantages:
Highly Economical: It provides promotional emailing at an amazingly low rate of $0.10 per 1000 emails. The customer only pay for what is utilised. This is the lowest price available for mass mailing.
Web App to create and track campaign: The brilliance of EmailOcean lies in it making the process easier and faster for the customer,as compared to Amazon and Sendgrid, EmailOcean has a beautiful Web-app which makes creating and sending the campaign a lot more easier. Using this web-app one can also send and track their campaigns and get detailed analytics.You can see the users who have opened, clicked, unsubscribed and bounced.
Inbox Deliveries: Their inbox delivery rate is phenomenal.
Excellent Support: They also provide a support staff that is available at your beck and call 24*7.

As of now,the registrations are open by invitation but register yourself with the website and keep self updated as to when they are open to all or for your surprise invitation code.

Post a Comment

Popular Posts


Twitter Delicious Facebook Digg Stumbleupon Favorites More