Avatar of lianne143
lianne143Flag for United States of America asked on

How to update time on the servers and workstations and laptops on the network.

Hi
Recently I migrated our domain controllers to the windows 2019 server.
PC and servers on the network are 2 minutes ahead of the actual time.
Please let me know how I find my time servers
Secondly how to update the time on all the desktops and laptops.


Any help is much appreciated

Thanks
 

Windows 10* Time Server, NTP, PTP, Precision Time Protocol, Windows Servers* domain controllerWindows Server 2019

Avatar of undefined
Last Comment
lianne143

8/22/2022 - Mon
Kaffiend

w32tm /query /source
- this command will tell you the time source for the desktop/server you run this command from

The time source should be a domain controller.  If that domain controller does not hold the PDC Emulator role, log on to it, and run the same command.  Ultimately, it should lead to the DC that holds the PDC Emulator role.

In case the command does not return a DC as time source, then run this command:
  w32tm /config /syncfromflags:DOMHIER /update
  w32tm /resync /nowait
  net stop w32time
  net start w32time
(what this does is tell the desktop/server to use AD domain for time sync

(  ****** Before you do any of that, make sure the PDC Emulator DC is set up correctly to pull time from an external time source)
ASKER CERTIFIED SOLUTION
Philip Elder

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
lianne143

On my windows 10 workstation, I ran the following command  and I got the following result.
 and ADC-00a is our primary domain controller.

Microsoft Windows [Version 10.0.19043.1237]
(c) Microsoft Corporation. All rights reserved.
 
C:\windows\system32>w32tm /query /source
ADC-001.domain.local
 
C:\windows\system32>

So If I run the following commands will the time gert update on both the Primary domain controller and secondary domain controller

REM PDCe UK
w32tm /config /syncfromflags:manual "/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" /reliable:yes
w32tm /config /update
net stop w32time && net start w32time
w32tm /resync /force
w32tm /query /source
 
REM Secondary DCs
w32tm /config /syncfromflags:domhier /reliable:no /update
net stop w32time && net start w32time
w32tm /resync /force
w32tm /query /source
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
lianne143

Do I need to run the command on the primary domain controller and do I need to specify the UK time while running the command?
How will the primary domain controller pick up the correct time after running the command?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER
lianne143

Sorry Philip, I am not clear with your comment.
"make sure to disable the time sync with host feature so that the DC OS remains independent which is important."
Please can you provide steps
Thanks 


We have VMWare virtual infrastructure and both the primary domain controller and the secondary controller are virtual machines.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
lianne143

As shown below these settings is unchecked already on both Primary domain controller and secondary controller .
  1. In the VM's configuration, go to Edit Settings > Options > VMware tools.



Philip Elder

Good to go.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
lianne143

Hi Philip and  Kaffiend

Thank you so much for your help. Really appreciate your timely responses.

All worked great :)