Automation

 View Only
  • 1.  disable VMware tools disable sync for multiple vms

    Posted May 25, 2021 10:50 PM

    After upgrading our ESXi hosts to 7.0.1 all of our vm's now have the time sync setting checked for VMtools (Synchronize at startup and resume). We use Windows time from our Active Directory domain controllers for our vm's. How can I disable this feature or uncheck the time sync using a power CLI command versus touching several thousand vm's and manually unchecking these?



  • 2.  RE: disable VMware tools disable sync for multiple vms

    Posted May 26, 2021 09:23 AM

    You mean like this?


     wrote:

    After upgrading our ESXi hosts to 7.0.1 all of our vm's now have the time sync setting checked for VMtools (Synchronize at startup and resume). We use Windows time from our Active Directory domain controllers for our vm's. How can I disable this feature or uncheck the time sync using a power CLI command versus touching several thousand vm's and manually unchecking these?




  • 3.  RE: disable VMware tools disable sync for multiple vms

    Posted May 26, 2021 09:56 PM

    Hi LucD,

    Thank you for the script.

    So running this script would it disable the time sync with host for all the 2000 vm's?



  • 4.  RE: disable VMware tools disable sync for multiple vms

    Posted May 26, 2021 09:58 PM

    The Get-VM returns all VMs, if there are 2000, then yes, it will change the setting for all 2000



  • 5.  RE: disable VMware tools disable sync for multiple vms

    Posted May 27, 2021 12:51 PM

    Thank you LucD
    I shall try that and let you know!



  • 6.  RE: disable VMware tools disable sync for multiple vms

    Broadcom Employee
    Posted Mar 25, 2022 05:44 PM

    Hi Guys

    Anyone has luck using this script? I was trying with it but it perfectly works for ESXi older than 6.7 but I dont have luck with vSphere 7.0 U1 and later, it looks like with the change in vmtools option the settings has been changed as well.

    Does anyone have a new script for vsphere 7.0 and later

    Thanks & Regards!



  • 7.  RE: disable VMware tools disable sync for multiple vms

    Posted Sep 14, 2022 02:33 AM

    With all respect to LucD, I think it must be 

    $spec.tools.syncTimeWithHostAllowed = $false

    Because 

    $spec.tools.syncTimeWithHost = $false

     will only disable child "Synchronize time periodically" setting, not the main one.

    Regards

     



  • 8.  RE: disable VMware tools disable sync for multiple vms

    Posted Sep 14, 2022 07:08 AM