Hi,
How do i sync time between linux and windows…
4 Spice ups
set one or the other to be a ntp server, point the other one at it.
in linux you can edit /etc/ntp.conf to point it at the ip of your windows server.
for example: https://help.ubuntu.com/lts/serverguide/NTP.html
or on windows use w32tm, configure a manual peer list and have it use your linux server as the time server.
… typically you’d want your primary time server to sync up w/ an external source also like one of the NIST servers.
6 Spice ups
To point a Windows client to your own NTP server, open a CMD with elevated privileges and type:
w32tm /config /manualpeerlist:yourserver,0x8 /syncfromflags:MANUAL
I use this to synchronize time from my Samba4 DC, whenever I want to test something.
Make sure port 123 is open on the ntp server. This can be done easily with a GPO if you have a domain controller, go to:
Computer Configuration > Administrative Templates > System > Windows Time Service > Time Providers > Configure Windows NTP Client and configure from there
1 Spice up
Mike. Thank u… i will check
1 Spice up
caigenliu
(craigliu)
5
George, your command can only used by an administrative account. What to do to make a non-administrative account run it?