PowerCLI

 View Only
  • 1.  How to get ESXi Host Name within running VM

    Posted Jul 10, 2020 02:02 PM

    Is there any possibility to get ESXi host name within running windows VM via installed VMware Tools or any other way. Let us suppose I am working in a windows VM and I just want to know on which ESXi host or host version this VM is running. I googled and found below but this is not working.

    vmtoolsd.exe --cmd "info-get guestinfo.hypervisor.hostname"



  • 2.  RE: How to get ESXi Host Name within running VM
    Best Answer

    Posted Jul 10, 2020 02:10 PM

    If you want to use that concept, you will first have to set that guestinfo variable, and eventually make it permanent via the VMX file.

    See William's post How to extract host information from within a VM?