Search code examples
windows-10azure-devopscommand-promptwindows-10-universalwindows-10-desktop

The local machine's clock may be out of sync with the server time by more than five minutes


While configuring VSTS agent locally through command prompt with admin privileges, i've encountered the error below

The local machine's clock may be out of sync with the server time by more than five minutes. Please sync your clock with your domain or internet time and try again

I've tried different google answers but nothing worked out. Please help me


Solution

  • It's mainly caused the time for agent machine is asynchronous with the time shows in VSTS.

    You can check if the time zone for your agent machine is same with the time zone in VSTS settings page (https://account.visualstudio.com/_admin/_home/settings).