Hi,
Can anyone here help me in performing a bulk changes in the VM Configuration Parameters from to add the following two lines:
this is as per the article below.
Any help would be greatly appreciated.
Thanks
This should hopefully work, obviously test it first. Have you considered making this change at the host level rather then guest. It is a lot easier to modify and apply at the host level in my opinion.
Connect-VIServer <ServerName>
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$VMX01 = New-Object VMware.Vim.OptionValue
$VMX01.Key = “isolation.tools.copy.disable”
$VMX01.Value = “FALSE
$vmConfigSpec.ExtraConfig += $VMX01
$VMX02 = New-Object VMware.Vim.OptionValue
$VMX02.Key = “isolation.tools.paste.disable”
$VMX02.Value = “FALSE
$vmConfigSpec.ExtraConfig += $VMX02
Get-VM | %{
$_.Extensiondata.ReconfigVM($vmConfigSpec)
}
This should hopefully work, obviously test it first. Have you considered making this change at the host level rather then guest. It is a lot easier to modify and apply at the host level in my opinion.
Connect-VIServer <ServerName>
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$VMX01 = New-Object VMware.Vim.OptionValue
$VMX01.Key = “isolation.tools.copy.disable”
$VMX01.Value = “FALSE
$vmConfigSpec.ExtraConfig += $VMX01
$VMX02 = New-Object VMware.Vim.OptionValue
$VMX02.Key = “isolation.tools.paste.disable”
$VMX02.Value = “FALSE
$vmConfigSpec.ExtraConfig += $VMX02
Get-VM | %{
$_.Extensiondata.ReconfigVM($vmConfigSpec)
}
Yes, I was thinking to do that because for some VMs in the clustered DMZ host, the copy paste feature must remains OFF, so yeah if I can modify your script to replace the Get-VM with Get-Cluster -Name DMZ-Clu01 | Get-VM ..... is that all that I need to change ?
Yep that is correct. Should work fine.