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?
Message was edited by: halr9000 ** reformatted code with tags