• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4259
  • Last Modified:

batch file for setting time in windows

Hi Guys,

Has anybody any ideas of a batch file to set the time on a windows machine with a NTP server??
0
jonathanduane2010
Asked:
jonathanduane2010
1 Solution
 
Tony GiangrecoCommented:
Here is a batch file we use. It works great.

net stop w32time
net start w32time
w32tm /config /manualpeerlist:129.6.15.28,0x8 /syncfromflags:MANUAL /reliable:yes /update
w32tm /resync /rediscover
net stop w32time
net start w32time
1

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now