I need to change Encrypted vmotion and Encrypted FT to "REQUIRED" from "Oppurtunistic"
I can change vmotion using below code but cannot change Encrypted FT. Let me know, what we can add here
$VMView = Get-VM | Get-View
$Config = New-Object VMware.Vim.VirtualMachineConfigSpec
$Config.MigrateEncryption = New-Object VMware.Vim.VirtualMachineConfigSpecEncryptedVMotionModes
$Config.MigrateEncryption = "required"
$VMView.ReconfigVM($Config)