A script to change date and time after windows 10 starting

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

bachusteam

Thread Starter
Joined
Nov 18, 2017
Messages
2
Hi, i'm new here and i need a script like in this old topic: https://forums.techguy.org/threads/...te-and-time-before-starting-a-program.985824/ , but i need for windows 10 with automatic date and time adjust, coz i have a laptop and each time i close the time is delay, i try all tutorial from internet to make the setings and to change bios battery with a new one and the problem is the same. and the only way to ajust time is to click right on time and go to ajust and press update.

if you can help me to make a .bat like in that old topic but to work on windows 10 with automatic adjust time and date to execute by click on it each time after windows is open will be great.
 
Joined
Mar 16, 2013
Messages
792
Hi, this works on my win 10:-

@Echo off
w32tm /config /manualpeerlist:time.windows.com
net stop w32time && net start w32time
w32tm /config /update
w32tm /resync /force

Copy into notepad, save it to desktop, call it time.bat, right click to "run as administrator"
 

managed

Allan
Moderator
Joined
May 24, 2003
Messages
15,495
What did you do to fix it ?

(if you're sure it's Solved please mark it so with the button at the top of your page).
 
Joined
Mar 16, 2013
Messages
792
Hi, i wrote that little script in a hurry, it does work, however the windows time service is set to start manually(trigger), so the cmd can hang stopping a service that is not started, best to run this:-

@Echo off
w32tm /config /manualpeerlist:time.windows.com
net start w32time
w32tm /config /update
w32tm /resync /force

Must right click, and "run as administrator".
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top