At my work, most ports including the one used by the Internet Time sync are blocked by a firewall.
Some systems (especially those with bad CMOS batteries) need to have the clock set before Windows Update works, so I wrote this for our software toolkit.
Any changes, corrections, or criticisms welcome. I am always looking to improve my code!
#RequireAdmin
#include<Date.au3>
; For the ActiveTimeBias registry key:
; 4294967296 = 0 for UTC +X:YZ time zones; subtract value of key to g