Hey,
I have a 5.5 vCenter full of VMs that I need to test compliance with KB1189 - Disabling Time Synchronization
Using Get-AdvancedSetting I can test and receive results for all settings except "tools.syncTime". Is there a way to query this setting?
Thanks
There is in fact no need to perform an additional Get-View, you can do
Get-VM | Select Name,@{N='TimeSync';E={$_.ExtensionData.Config.Tools.syncTimeWithHost}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this,
Get-VM | select Name,@{N='SyncTimeWithHost';E={($_ | Get-View).config.tools.synctimewithhost}}
There is in fact no need to perform an additional Get-View, you can do
Get-VM | Select Name,@{N='TimeSync';E={$_.ExtensionData.Config.Tools.syncTimeWithHost}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Excellent, thanks Sivaramsharmar and LucD!
I had spotted syncTimeWithHost although I hadn't realised it was the same as tools.syncTime
Thanks again
