Question

Anyone know of a script that I can run to install vmx-09 on my servers at a scheduled time?

I have a number of servers that need to be upgraded and most can only be shut down after hours. Since I need to get these done preferably before I come in in the morning, I'd like to schedule them around 7am.

Was it helpful?

Solution 2

This script apparently uses the UpgradeVM_Task method to target hardware v7. I haven't tried it.

In case you're using the Windows Task Scheduler, here are two ways to schedule a PowerCLI task.

Update Manager sounds like another thing to check out.

OTHER TIPS

This will upgrade HW compatibility on next reboot:

$Spec = [VMware.Vim.VirtualMachineConfigSpec]@{
    ScheduledHardwareUpgradeInfo = [VMware.Vim.ScheduledHardwareUpgradeInfo]@{
        UpgradePolicy = 'always'
        VersionKey = 'vmx-10'
    }
}
$vm.ExtensionData.ReconfigVM_Task($Spec)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top