We're running IIS in a CI/CD process where we build a new VM, join it to domain, install a web app, etc.
The new VM is cloned from a template that has IIS pre-installed to save time.
The issue we're facing is this:
Machine boots, joins domain, syncs time, updates time. IIS stays the same time as system time when the machine booted and doesn't update the time in IIS logs. Once current system time passes the boot time that's in future, the IIS logs show current time.
This is causing an issue in troubleshooting.
We've tried a number of workarounds and nothing has worked thus far. Any idea how to force IIS to honor current system time? Or how to sync time before IIS starts.