I added the following extraconfig settings
isolation.tools.copy.enable=false
isolation.tools.paste.enable=false
What I should have added was
isolation.tools.copy.disable=true
isolation.tools.paste.disable=true
How can I change or delete these settings?
Here is how I added it originally:
connect-viserver $args[0]
$vmConfigSpec1 = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec1.extraconfig += New-Object VMware.Vim.optionvalue
$vmConfigSpec1.extraconfig[0].Key="isolation.tools.copy.enable"
$vmConfigSpec1.extraconfig[0].Value="false"
$vmConfigSpec2 = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec2.extraconfig += New-Object VMware.Vim.optionvalue
$vmConfigSpec2.extraconfig[0].Key="isolation.tools.paste.enable"
$vmConfigSpec2.extraconfig[0].Value="false"
$VMs = Get-Cluster $args[1] | Get-VM | % {Get-View $_.Id}
foreach ($vm in $VMs) {
$vm.ReconfigVM($vmConfigSpec1)
$vm.ReconfigVM($vmConfigSpec2)
}
isolation.tools.copy.enable=false
isolation.tools.paste.enable=false
What I should have added was
isolation.tools.copy.disable=true
isolation.tools.paste.disable=true
How can I change or delete these settings?
Here is how I added it originally:
connect-viserver $args[0]
$vmConfigSpec1 = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec1.extraconfig += New-Object VMware.Vim.optionvalue
$vmConfigSpec1.extraconfig[0].Key="isolation.tools.copy.enable"
$vmConfigSpec1.extraconfig[0].Value="false"
$vmConfigSpec2 = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec2.extraconfig += New-Object VMware.Vim.optionvalue
$vmConfigSpec2.extraconfig[0].Key="isolation.tools.paste.enable"
$vmConfigSpec2.extraconfig[0].Value="false"
$VMs = Get-Cluster $args[1] | Get-VM | % {Get-View $_.Id}
foreach ($vm in $VMs) {
$vm.ReconfigVM($vmConfigSpec1)
$vm.ReconfigVM($vmConfigSpec2)
}