Modifier les serveurs de synchronisation NTP sous Windows

From Deimos.fr / Bloc Notes Informatique
Jump to: navigation, search

1 Introduction

I have a Windows Server 2008 DC and I wanted to use my internal time server on a linux box running ntpd.

After a little hunting around, I found the command required to set Windows up to use the correct time peer.

2 Configuration

Command w32tm
w32tm /config /update /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8" /syncfromflags:MANUAL

After making this change, you need to restart the Windows Time Service by issuing the following 2 commands,

Command net
net stop w32time
net start w32time

If you have problems, first make sure the Windows Time Service is enabled.

Note : This works with Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008.

3 Ressources

http://blogs.msdn.com/w32time/default.aspx
http://www.meinberg.de/german/sw/ntp.htm