VMware Cloud Community
AlbertWT
Virtuoso
Virtuoso
Jump to solution

How to perform bulk changes in the VM Configuration Parameters for all VM ?

Hi,

Can anyone here help me in performing a bulk changes in the VM Configuration Parameters from to add the following two lines:

  1. isolation.tools.copy.disable="FALSE"
  2. isolation.tools.paste.disable="FALSE"

this is as per the article below.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=102643...

Any help would be greatly appreciated.

Thanks

/* Please feel free to provide any comments or input you may have. */
0 Kudos
1 Solution

Accepted Solutions
AureusStone
Expert
Expert
Jump to solution

This should hopefully work, obviously test it first. Smiley Happy  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)
}

View solution in original post

0 Kudos
3 Replies
AureusStone
Expert
Expert
Jump to solution

This should hopefully work, obviously test it first. Smiley Happy  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)
}

0 Kudos
AlbertWT
Virtuoso
Virtuoso
Jump to solution

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 ?

/* Please feel free to provide any comments or input you may have. */
0 Kudos
AureusStone
Expert
Expert
Jump to solution

Yep that is correct.  Should work fine.