How to set ntp server in windows server

Configurare noua (How To)

Situatie

Solutie

Open Command Prompt as Administrator
Press Win + X -> Command Prompt (Admin) or PowerShell (Admin).

-Stop the Windows Time service:

net stop w32time

-Set the NTP server(s):
Replace the example with your preferred NTP servers (comma-separated, no spaces).

w32tm /config /manualpeerlist:”time.windows.com,0x1″ /syncfromflags:manual /reliable:no /update

-Example with multiple servers:

w32tm /config /manualpeerlist:”0.pool.ntp.org,0x1 1.pool.ntp.org,0x1″ /syncfromflags:manual /update

-Start the Windows Time service again:

net start w32timeForce an immediate sync:

w32tm /resync

-Check the configuration and status:

w32tm /query /status
w32tm /query /configuration

Tip solutie

Permanent

Voteaza

(2 din 3 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?