NetDocuments-Archive / ad-join-cookbook

Chef cookbook to join windows computer to AD
Apache License 2.0
14 stars 12 forks source link

Second reboot fails if timezone changes #13

Closed spuder closed 8 years ago

spuder commented 8 years ago

Scenario

Hypervisor sets timezone to UTC Chef cookbook joins to domain VM reboots On reboot, group policy is applied, changing time zone to Eastern cookbook scheduled task will run once, but not the second time

Cause

Under advanced settings, the task sometimes gets the check box "Activate" Since the Activate is in UTC time, the task won't run until several hours in the future. Microsoft seems to think that run at 'reboot' really means ' run at reboot and after x time'

screenshot 2016-06-10 10 46 15

Possible solutions

spuder commented 8 years ago

Fixed in 4.9.0

Changes scheduled task start time to a day guaranteed to be in the past.