VMware Cloud Community
vmk2014
Expert
Expert
Jump to solution

Can we pull the Hardware upgrade compatibility & VMware tools upgrade Scheduled for bulk VM's from the lists ?

Hello Everyone,

Can we pull the Hardware upgrade compatibility & VMware tools upgrade Scheduled or enabled at next re-boot  for bulk VM's from the lists e.g. C:\Temp\list.txt

Not for individual VM.

Get-VM |

Select Name,

    @{N='HW Upgrade Scheduled';E={$_.ExtensionData.ScheduledHardwareUpgrade.UpgradePolicy -eq'OnSoftPoweroff'}},

    @{N='Tools Upgrade Scheduled';E={$_.ExtensionData.Tools.ToolsUpgradePolicy -eq 'UpgradeAtPowerCycle'}}

regards

vmk

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Yes, something like this for example

Get-VM -Name (Get-Content -Path C:\TEMP\vmliste.txt) |

Select Name,

    @{N='HW Upgrade Scheduled';E={$_.ExtensionData.ScheduledHardwareUpgrade.UpgradePolicy -eq'OnSoftPoweroff'}},

    @{N='Tools Upgrade Scheduled';E={$_.ExtensionData.Tools.ToolsUpgradePolicy -eq 'UpgradeAtPowerCycle'}}


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

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Yes, something like this for example

Get-VM -Name (Get-Content -Path C:\TEMP\vmliste.txt) |

Select Name,

    @{N='HW Upgrade Scheduled';E={$_.ExtensionData.ScheduledHardwareUpgrade.UpgradePolicy -eq'OnSoftPoweroff'}},

    @{N='Tools Upgrade Scheduled';E={$_.ExtensionData.Tools.ToolsUpgradePolicy -eq 'UpgradeAtPowerCycle'}}


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

0 Kudos