You can do that anytime.
Something like thisGet-VM -Name MyVM |
Set-VM -GuestId windows9Server64Guest -Confirm:$false
Note that this value is only used when creating a VM
That works well if the VM is powered off. I am trying to set the change so it will take affect on reboot (since it is not a change allowed when powered on).
Thanks for the try.
Something like this (which sets the compatibility to be updated on reboot):
$vm = Get-VM -Name VMGuestName
$spec = New-Object -TypeName VMware.Vim.VirtualMachineConfigSpec
$spec.ScheduledHardwareUpgradeInfo = New-Object -TypeName VMware.Vim.ScheduledHardwareUpgradeInfo
$spec.ScheduledHardwareUpgradeInfo.UpgradePolicy = "always"
$spec.ScheduledHardwareUpgradeInfo.VersionKey = "vmx-14"
$spec.ScheduledHardwareUpgradeInfo.ScheduledHardwareUpgradeStatus = "pending"
Yes, you are right. I tested with a VM that already had windows9Server64Guest as its guest identifier.
Doesn't seem to be a method to change that while powered on, or prep it for the next reboot.