Please wait,
Processing your request...

    0%
  Business logo VanSoest.it
  ... | Selecteer de Nederlandse taal |
Sharing is caring
| Print this page. | Linkedin page of Johan van Soest

React: Postcard image. Click this to mail to Johan

WebHalla
 Content
  Management
   System

ICT-Hotlist Topic

NTP Time Source

How to configure an authoritative time server in Windows" Server 2008 (R2)

Windows servers include a time service, as correct time is very important for Kerberos authentication. All computers in a Windows Active Directory Domain will normally get their time from their authenticating Domain Controller (logon server). All Domain Controllers get their time from the server running the PDC emulator role. See also the box "How to locate your PDC?". The server running the PDC role can be configured to get it's time from a hardware device or an authoritative time service on the internet.
Image of the Windows time synchronisation hierarchy. Click for a larger image.
Image of the Windows time synchronisation hierarchy. Click for a larger image.

For information about and a tool to set the authoritative time server automatically go to http://support.microsoft.com/kb/816042#FixItForMeAlways2
This tool also shows you the syntax about setting up multiple authoritative time servers.
Current time sources can be checked by the command:
w32tm /query /peers
This produces thefollowing output:
C:\>w32tm /query /peers
#Peers: 2

Peer: time.microsoft.com,0x1
State: Active
Time Remaining: 449.1250324s
Mode: 1 (Symmetric Active)
Stratum: 2 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 8 (256s)
HostPoll Interval: 8 (256s)

Peer: ntp.xs4all.nl,0x1
State: Active
Time Remaining: 449.1250324s
Mode: 1 (Symmetric Active)
Stratum: 2 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 8 (256s)
HostPoll Interval: 8 (256s)

How to locate your PDC using the Command line?
You can find the server running the PDC role by opening a command box and type:
netdom query fsmo

This should result in something like:
C:\>netdom query fsmo
Schema master               nlaaldc1.vansoest.local
Domain naming master        nlaaldc1.vansoest.local
PDC                         nlaaldc1.vansoest.local
RID pool manager            nlaaldc1.vansoest.local
Infrastructure master       nlaaldc1.vansoest.local
The command completed successfully.
How to locate your PDC using PowerShell?
Import-Module ActiveDirectory
Get-ADForest -Current LocalComputer | Format-List SchemaMaster ,DomainNamingMaster
Get-ADDomain -Current LocalComputer | Format-List PDCEmulator, RIDMaster, InfrastructureMaster

This should result in something like:
SchemaMaster       : nlaaldc1.vansoest.local
DomainNamingMaster : nlaaldc1.vansoest.local




PDCEmulator          : nlaaldc1.vansoest.local
RIDMaster            : nlaaldc1.vansoest.local
InfrastructureMaster : nlaaldc1.vansoest.local

Note 1: this topic does not explain the differences between SNTP and NTP. Read more here http://www.cis.udel.edu/~mills/database/rfc/rfc4330.txt
Note 2: When entering multiple time sources in the wizzard, you should keep the ",0x1" behind every time source.
Multipe time sources. Pay attention to the ',0x1'.
Multiple time sources. Pay attention to the ",0x1".

Note 3: List of time servers by country code https://support.ntp.org/bin/view/Servers/StratumTwoTimeServers
You may vote your opinion about this article:


Scripts and programming examples disclaimer

Unless stated otherwise, the script sources and programming examples provided are copyrighted freeware. You may modify them, as long as a reference to the original code and hyperlink to the source page is included in the modified code and documentation. However, it is not allowed to publish (copies of) scripts and programming examples on your own site, blog, vlog, or distribute them on paper or any other medium, without prior written consent.
Many of the techniques used in these scripts, including but not limited to modifying the registry or system files and settings, impose a risk of rendering the Operating System inoperable and loss of data. Make sure you have verified full backups and the associated restore software available before running any script or programming example. Use these scripts and programming examples entirely at your own risk. All liability claims against the author in relation to material or non-material losses caused by the use, misuse or non-use of the information provided, or the use of incorrect or incomplete information, are excluded. All content is subject to change and provided without obligation.
Generated by WebHalla™ Version 0.1.e.7 : Wednesday 24-4-2024 © Copyright 1995-2024 ing. Johan P.G. van Soest CIPM Certified Privacy Information Manager
Response Form    Cookie- and Privacy statement    Responsible Disclosure procedure
Weather in Waalre by OpenWeatherMap logo light rain
Temperature 8.7 °C light rain
Wind chill 6.12 °C light rain
Humidity 70 % light rain
Air pressure 1005 hPa light rain
Wind speed 4.63 m/s light rain
Wind direction North West North West light rain
Sun Rise 6:23 Sun Rise
Sun Set 20:49 Sun Set
Updated:2024-04-24 18:53:10 light rain

Weather Cache is 2 minute(s) old.
| Current user: Guest | Login |