9 Replies Latest reply on Jul 29, 2008 8:10 AM by SimonM1

    Configuring VMware Tools to synchronize guest time with host time.

    Master

      I had a question this morning about setting tools to synchronize time with the host, and I wanted to share the results. Thanks to LucD for the outline.

       

      Get-VM | % { Get-View $_.ID} | `
          % {
              $spec = new-object VMware.Vim.VirtualMachineConfigSpec
              $spec.tools = New-Object VMware.Vim.ToolsConfigInfo
              $spec.tools.syncTimeWithHost = $true
              Get-View($_.ReconfigVM_Task($spec))
            }