How do I disable the automatic datetime in an azure virtual machine?

I want to be able to change the date and time on my vm to dates in the past. Every time I change it, it automatically changes back because of this setting. Unfortunately I cannot change it because it is disabled. I am logged in as an admin on the vm. Any ideas?

enter image description here


Solution 1:

I haven`t played around with that, but I guess you need to disable automatic synchronization first. So, the config that worked in one of the environments is:

  • Hyper-V Time Synchronization Service, startup set to "Manual"
  • Windows Time Service, startup set to "Manual"
  • Time settings set to actively synchronize with "time.windows.com" (I care about the date being different, not the time)

After you change that, IMHO you should get things to work. If not - that should be at least one step forward to your goal

Solution 2:

Switching off Hyper-V Time Synchronization Service is good enough.