4 Replies Latest reply on Nov 24, 2008 6:09 AM by halr9000

    Can set to True but not to False

    Gabrie Master
    vExpert

      Hi,

      I've been using this script to set the timesync of a VM to TRUE. But I can't seem to set it to false.

       

       

       

       

       

      Connect-VIServer 
      [http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName("vmware.vim")
      $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
      $vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo
      $vmConfigSpec.Tools.syncTimeWithHost = "TRUE"
      Get-VM -name "VMWSV339" | % { (Get-View $_.ID).ReconfigVM($vmConfigSpec)}

       

      I thought that changing  TRUE to FALSE would do the trick, but it doesn't.....

       

       

      Why not?

       

       

      http://www.GabesVirtualWorld.com

       

      Message was edited by: halr9000 ** reformatted code with  tags