1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

A script to change date and time after windows 10 starting

Discussion in 'Windows 10' started by bachusteam, Nov 18, 2017.

Thread Status:
Not open for further replies.
Advertisement
  1. bachusteam

    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.
     
  2. managed

    managed Trusted Advisor Spam Fighter

    Joined:
    May 24, 2003
    Messages:
    12,220
    First Name:
    Allan
  3. jenae

    jenae

    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"
     
  4. bachusteam

    bachusteam Thread Starter

    Joined:
    Nov 18, 2017
    Messages:
    2
    ty all for reply, solve
     
  5. managed

    managed Trusted Advisor Spam Fighter

    Joined:
    May 24, 2003
    Messages:
    12,220
    First Name:
    Allan
    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).
     
  6. jenae

    jenae

    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".
     
  7. Sponsor

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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1199669

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice