VMware Cloud Community
tzaesg67
Contributor
Contributor

VM Power Management : Standby Response

Hi All,

1/ I'm looking for an elegant  way to list all my VMs Power Management Standby Response parameters; is it possible to automate that check (>800 VMs)?

vmware.jpg

Thank you

Thomas

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Try like this

Get-VM |

Select Name,

    @{N='Standby Response';E={$_.ExtensionData.Config.DefaultPowerOps.StandbyAction}}


And for a faster version, especially in big environments, you could do

Get-View -ViewType VirtualMachine -Property Name,'Config.DefaultPowerOps' |

Select Name,

    @{N='Standby Response';E={$_.Config.DefaultPowerOps.StandbyAction}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos