gardart / ansible-freeipa-lab

Testing environment for FreeIPA identity management (IDM) with Active Directory
MIT License
7 stars 1 forks source link

Fix timezone for domain controller #2

Closed gardart closed 3 years ago

gardart commented 3 years ago

w32tm /config /manualpeerlist:"0.uk.pool.ntp.org,0x1 1.uk.pool.ntp.org,0x1 2.uk.pool.ntp.org,0x1 3.uk.pool.ntp.org,0x1"

net stop w32time && net start w32time

Force synchronizing the time asap w32tm /resync /nowait

Check NTP configuration w32tm /query /configuration

w32tm /query /source Display time source

w32tm /query /peers Display list of all configured NTP servers and their status

w32tm /query /status Display time service status i.e whether it is getting time from local cmso clock/external NTP server

gardart commented 3 years ago

set-timezone -id "Greenwich Standard Time"

gardart commented 3 years ago

Fixed with Ansible win_timezone