Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 113149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:39:25+00:00 2026-05-11T02:39:25+00:00

I have several servers hosted with GoGrid, and every time I reboot one of

  • 0

I have several servers hosted with GoGrid, and every time I reboot one of my cloud servers, the system clock is incorrect. The server isn’t a member of a domain, so I just have the OS set to sync with an Internet time server. This only happens once a day, and I don’t see an option to make this happen automatically upon reboot. So I’m left with writing some code to do it for me.

I created a batch file with the ‘w32tm /resync’ command, and scheduled it to run on system startup, but it doesn’t work because the network connection isn’t available when the batch file is run. How can I cause the time sync to start after the OS is fully loaded and the network connection is available? I need the time to be correct ASAP after the computer boots so timestamps in my database will be correct.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:39:25+00:00Added an answer on May 11, 2026 at 2:39 am

    On Windows 2008, there is an option in the Task Scheduler that will allow you to wait until a network connection is available before the task is run. In the task properties dialog, create a new ‘At Startup’ trigger, and be sure to check the ‘Enabled’ box. Add an action to run your batch file. Finally, add a Condition to start the task only if the network connection is available. I then asked it to restart the command up to 3 times if it failed. That seems to work great.

    On older versions of Windows, use the following batch file contents to retry the sync command until it is successful, or until it has retried too many times.

    REM *** Retry for up to 15 minutes (90 retries @ 10 seconds each) set retryCount=0  :SyncStart if %retryCount == 90 goto SyncEnd set /A retryCount=retryCount + 1  REM *** Resync the system clock w32tm /resync if errorlevel 1 goto SyncDelay if errorlevel 0 goto SyncEnd  :SyncDelay REM *** If unsuccessful, delay 10 seconds, then retry choice /n /t:y,10>nul goto SyncStart  :SyncEnd 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer In your event handler function ui.tab is an anchor element.… May 11, 2026 at 8:56 am
  • added an answer Public release notes should contain at least: release, buildnumber all… May 11, 2026 at 8:56 am
  • added an answer Don't have any benchmarks to support this, but one would… May 11, 2026 at 8:56 am

Related Questions

I have several servers hosted with GoGrid, and every time I reboot one of
I have several functions that I wrote and I use regularly on my servers,
I have several server processes that once in a while respond to messages from
I'm writing multilingual website. I have several files on server like: /index.php /files.php /funny.php
Lets say I have several web sites on my web server, all as applications
We are moving our database server to a bigger box. I have several databases
I have a number of web apps running on several IIS6/Server 2003 boxes. They
I am adapting a little rmi client-server application. I have written several things :
I am currently using Windows Server 2008 Standard and have several Hyper V machines.
I have several ASP:TextBox controls on a form (about 20). When the form loads,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.