Set guest VM’s to Sync time with host

June 8, 2009 — Leave a comment

Taken from here >> http://communities.vmware.com/message/1005498

Connect-VIServer cw-vc
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))
}

No Comments

Be the first to start the conversation!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s