1.

Solve : Update computer date, time, and timezone?

Answer»

Is there any way to update the current date, time, and timezone from time.gov or time.windows.com without requiring the user to make any manual adjustments? I currently have my script to do a resync, but it doesn't automatically update the current date, time, and timezone if they're incorrect. For my work-around, I start the timedate.cpl so the user manually CONFIGURES it, but I need something that is automated.

w32tm /resync >nulI found this script but coming up with errors with the first line. My next big ISSUE is setting timezone, is there ANYWAY the time servers can set time zone by iprecognition?

w32tm /config /sychfromflags:manual /manualpeerlist:time.nist.gov
-The following arguments were unexpected:
-/sychfromflags:manual
net stop w32time && net start w32time
w32tm /config /update
w32tm /resync /force

To CLARIFY the purpose of this script is simply to update my companies customers time and date to prevent a login loop issue. I'm not doing anything malicious at all for those who may think otherwise. I would appreciate any help that I can get on this. Thank you.I figured it out. For those of you who need a script to automate the Date, Time, and Timezone to update, here you go:

w32tm /config /manualpeerlist:time.nist.gov
net stop w32time && net start w32time
w32tm /config /update
w32tm /resync /force
tzutil.exe /s "Enter Time Zone"

If you want to know the list of time zones available, enter: tzutil /L in the command line.



Discussion

No Comment Found