VMware Horizon Community
SS73
Contributor
Contributor

How to Determine Host Machine name from virtual XP Desktop.

Hello,

We are using Windows XP/7 computers with the View Client v4.5.  Is there a way to programmatically determine the computer name/IP of the host PC from within the virtual Windows XP desktop (VDI)?  I would like to use the host machine information to launch an application dynamically in a non-persistent pool.

Thx

Tags (1)
0 Kudos
3 Replies
mittim12
Immortal
Immortal

There is a lot of information stored under HKEY_Current_User\Volatile Environment

0 Kudos
eeg3
Commander
Commander

To extend on mittim12's comment, here is a page with more info: http://www.thatsmyview.net/2009/05/29/using-client-information-in-vmware-view/

Blog: http://blog.eeg3.net
0 Kudos
pascuzzi
Contributor
Contributor

The VM would have to connect back to your Virtual Centers or all esx servers with one of the SDK's and try to figure out what  VM it is. Problem is there is nothing unique that the VM can use to identify it self. Best bet is mac address, but thats will not be unique if its manually set.

Also it requires that your VM knows information to access all your esx or virtual centers that it my be on and that a firewall doesn't block it from accessing the VC/ESXes.

Its been a design feature that the vm knows nothing directly about the host it is on..

0 Kudos