VMware Cloud Community
ief
Contributor
Contributor

Check VMware tools if timesync is enabled

Is there a way to check in VC if the VMs have enabled the timesync option in VMware tools?

blog www.ivobeerens.nl
0 Kudos
4 Replies
LucD
Leadership
Leadership

Sure, this one-liner gives the name of the VM and if the TimeSync is true or false

Get-VM | Get-View | %{Write-Host $_.Name $_.Config.Tools.syncTimeWithHost}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
ief
Contributor
Contributor

Thanks!

blog www.ivobeerens.nl
0 Kudos
mfiedler
Contributor
Contributor

How woudl you change this to only retrieve the "False" entries?

0 Kudos
halr9000
Commander
Commander

Get-VM | Get-View | ? { $_.Config.Tools.syncTimeWithHost -eq $false }






Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos