Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Viewing all articles
Browse latest Browse all 9071

Help to show VMHost name on a script

$
0
0

Hi,

 

Beginners question...

 

Using this command: Get-VMHost | Get-VMHostStartPolicy

 

I get this result:

 

VMHost                    Enabled  StartDelay StopAction StopDelay  WaitForHeartbeat
------                    -------  ---------- ---------- ---------  ----------------
HostSystem-ha-host        True    120        GuestSh... 120        False
HostSystem-ha-host        True    120        GuestSh... 120        True
HostSystem-ha-host        True    120        GuestSh... 120        False

 

How to make it show the VMHost instead of the "HostSystem-ha-host"?

 

Like:

 

Name           Enabled

---------          --------

Server1        True

 

Tried Get-VMHost | Get-VMHostStartPolicy | select @{Name="Host";Expression={$_.Name}},Enabled but it didn't worked...


Viewing all articles
Browse latest Browse all 9071


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>