%3CLINGO-SUB%20id%3D%22lingo-sub-1440820%22%20slang%3D%22en-US%22%3EDomain%20Time%20Synchronization%20in%20the%20Age%20of%20Working%20from%20Home%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1440820%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20Friday%20everyone!%20Brandon%20Wilson%20here%20posting%20on%20behalf%20of%20a%20new%20guest%20author%2C%26nbsp%3BSarath%20Madakasira.%20So%2C%20without%20further%20ado...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWorking%20from%20home%20has%20presented%20challenges%20in%20many%20areas%20and%20it%20is%20true%20for%20time%20synchronization%20on%20computers%20used%20at%20home%20to%20connect%20to%20work.%20More%20specifically%2C%20time%20synchronization%20on%20domain-joined%20computers%20used%20from%20home%20is%20potentially%20affected%20due%20to%20the%20challenges%20of%20remote%20connectivity.%3C%2FP%3E%0A%3CP%3EAD%20Domains%20and%20Forests%20were%20designed%20in%20an%20era%20of%20high-latency%2C%20low-bandwidth%20work%20networks%20and%20with%20security%20as%20a%20top%20criterion.%20These%20criteria%20extended%20to%20time%20synchronization%20within%20the%20Domains%20or%20Forests%20in%20the%20form%20of%20using%20NTP%20protocol%20enhanced%20with%20AD-based%20security.%20Time%20synchronization%20is%20also%20a%20requirement%20for%20Kerberos%20to%20function%20correctly%20in%20AD.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPCs%20that%20are%20not%20part%20of%20an%20AD%20domain%20still%20required%20time%20synchronization%20for%20usability.%20They%20were%20configured%20to%20use%20simple%20NTP%20over%20the%20internet%20to%20synchronize%20time%20periodically%2C%20with%20certain%20safeguards%20in%20place.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBecause%20of%20the%20divergent%20nature%20of%20requirements%20of%20these%20two%20scenarios%2C%20they%20synchronized%20time%20from%20different%20sources%20and%20at%20varying%20intervals%20using%20different%20protocols.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUse%20of%20VPNs%20is%20an%20established%20practice%20for%20AD%20Domains%2C%20as%20is%20time%20synchronization%20in%20the%20Domain%20over%20VPN%20links.%20What%20is%20new%20in%20recent%20times%20is%20the%20pervasive%20use%20of%20VPNs%20by%20almost%20everyone%20to%20work%20from%20home%20and%20the%20quality%2Freliability%20of%20the%20VPNs%20available%20in%20each%20case.%20These%20factors%20have%20affected%20the%20time%20synchronization%20on%20the%20domain%20client%20PCs%20at%20home.%20Over%20a%20period%2C%20domain%20clients%20with%20poor%20domain%20connectivity%20can%20experience%20loss%20of%20domain%20functionality%20or%20other%20functionality%20due%20to%20their%20system%20time%20drifting%20too%20far%20from%20the%20current%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20post%20touches%20upon%20some%20configuration%20ideas%20for%20domain%20clients%20used%20for%20working%20from%20home%20and%20connecting%20to%20their%20AD%20Domains%20remotely.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20two%20factors%20to%20consider%20when%20synchronizing%20time%20on%20a%20domain%20machine%20in%20a%20%E2%80%9Cworking%20from%20home%E2%80%9D%20situation%20%E2%80%93%20security%20and%20maximum%20allowed%20time%20error.%20Domain%20time%20sync%20adequately%20covers%20the%20first%20aspect%20but%20can%20fall%20short%20on%20time%20error%20due%20to%20potential%20remote%20connectivity%20issues.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAssuming%20the%20domain%20is%20synchronized%20with%20UTC%20in%20some%20manner%2C%20one%20can%20synchronize%20domain%20clients%20with%20simple%20NTP%20servers%20over%20the%20internet%20as%20a%20backup%20mechanism%20to%20keep%20the%20time%20on%20them%20reasonably%20accurate.%20Although%20this%20involves%20the%20use%20of%20unsecured%20NTP%20protocol%2C%20some%20techniques%20can%20be%20used%20to%20minimize%20potential%20risks.%20NTP%20servers%20on%20the%20internet%20tend%20to%20be%20available%20and%20reachable%20from%20most%20internet%20end%20points.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1326877097%22%20id%3D%22toc-hId--1326846156%22%20id%3D%22toc-hId--1326846156%22%3ESuggested%20Configuration%20Changes%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20see%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fnetworking%2Fwindows-time-service%2Fwindows-time-service-tools-and-settings%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EWindows%20Time%20Service%20tools%20and%20settings%20reference%3C%2FA%3E%20for%20more%20information%20on%20W32time%20service%20settings.%20The%20following%20changes%20can%20be%20targeted%20for%20remote%20users%20via%20GPO%20or%20through%20GPO%20%2B%20ACLs%20or%20GPO%20%2B%20WMI%20filtering%2C%20specifics%20of%20which%20are%20not%20discussed%20here.%26nbsp%3B%20For%20ideas%20on%20how%20to%20use%20WMI%20filters%20for%20policies%2C%20see%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Faskds%2Ffun-with-wmi-filters-in-group-policy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Faskds%2Ffun-with-wmi-filters-in-group-policy%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--636315623%22%20id%3D%22toc-hId--636284682%22%20id%3D%22toc-hId--636284682%22%3EEnable%20Backup%20Simple-NTP%20Sync%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20configures%20time.windows.com%20as%20a%20backup%20time%20server%20synchronizing%20every%20SpecialPollInterval%20seconds%20setting%20described%20in%20the%20next%20section.%3C%2FP%3E%0A%3CP%3E%3CEM%3EReg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CW32Time%5CParameters%20%2Fv%20Type%20%2Ft%20REG_SZ%20%2Fd%20%E2%80%9CAllSync%E2%80%9D%20%2Ff%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EReg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CW32Time%5CParameters%20%2Fv%20NtpServer%20%2Ft%20REG_SZ%20%2Fd%20%E2%80%9Ctime.windows.com%2C0xB%E2%80%9D%20%2Ff%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1851197210%22%20id%3D%22toc-hId-1851228151%22%20id%3D%22toc-hId-1851228151%22%3EDecrease%20polling%20frequency%20of%20Simple%20NTP%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20sets%20up%20very%20infrequent%20polling%20of%20the%20Simple%20NTP%20server.%20It%20should%20allow%20maintaining%20time%20accuracy%20within%20a%20few%20minutes%20of%20UTC%20on%20most%20machines.%3C%2FP%3E%0A%3CP%3E%3CEM%3EReg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CW32Time%5CConfig%20%2Fv%20MaxPollInterval%20%2Ft%20REG_DWORD%20%2Fd%2015%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EReg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CW32Time%5CTimeProviders%5CNtpClient%20%2Fv%20SpecialPollInterval%20%2Ft%20REG_DWORD%20%2Fd%2032768%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-43742747%22%20id%3D%22toc-hId-43773688%22%20id%3D%22toc-hId-43773688%22%3EProtection%20against%20Large%20Time%20Corrections%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20configuration%20prevents%20a%20client%20from%20accepting%20large%20time%20corrections%20from%20any%20time%20server.%20You%20need%20to%20tailor%20this%20for%20your%20application%20and%20choosing%20too%20small%20of%20a%20value%20may%20prevent%20time%20correction.%3C%2FP%3E%0A%3CP%3E%3CEM%3EReg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CW32Time%5CConfig%20%2Fv%20MaxNegPhaseCorrection%20%2Ft%20REG_DWORD%20%2Fd%2054000%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EReg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CW32Time%5CConfig%20%2Fv%20MaxPosPhaseCorrection%20%2Ft%20REG_DWORD%20%2Fd%2054000%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1763711716%22%20id%3D%22toc-hId--1763680775%22%20id%3D%22toc-hId--1763680775%22%3ESecure%20Time%20Seeding%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Fw32time%2Fsecure-time-seeding-improving-time-keeping-in-windows%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESecure%20time%20seeding%20feature%3C%2FA%3E%20was%20introduced%20in%20Windows%20as%20a%20means%20of%20correcting%20very%20large%20time%20errors%20on%20consumer%20PCs.%20Although%20this%20feature%20was%20not%20intended%20to%20keep%20time%20accurate%20enough%20for%20AD%20Domains%2C%20it%20can%20help%20correct%20large%20time%20errors%20in%20certain%20scenarios%20and%20allows%20SSL%2FTLS%20to%20function.%20The%20feature%20is%20enabled%20by%20default%20on%20domain%20machines%20also.%20%26nbsp%3BPlease%20refer%20to%20the%20blog%20post%20on%20more%20details%20and%20determine%20how%20you%20would%20like%20to%20use%20this%20feature%20in%20your%20domain.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-723801117%22%20id%3D%22toc-hId-723832058%22%20id%3D%22toc-hId-723832058%22%3EApplying%20Configuration%20Changes%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGP%20update%20triggers%20W32time%20service%20to%20reload%20the%20configuration.%20Alternately%2C%20restarting%20the%20W32time%20service%20or%20invoking%20w32tm.exe%20config%20update%20command%20works%20as%20well.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-713298013%22%20id%3D%22toc-hId-713328954%22%20id%3D%22toc-hId-713328954%22%3EAdditional%20Considerations%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20may%20not%20always%20be%20practical%2C%20but%20remote%20machines%20of%20critical%20importance%20need%20good%20timekeeping%20holdover%20if%20they%20synchronize%20time%20over%20unreliable%20networks.%20The%20parameters%20mentioned%20above%20may%20need%20customization%20for%20your%20specific%20topology.%3C%2FP%3E%0A%3CP%3E%3CU%3EPlease%20validate%20your%20configuration%20changes%20for%20intended%20results%20before%20widespread%20deployment.%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20reading%2C%20and%20we%20hope%20this%20helps%20alleviate%20some%20time%20sync%20concerns%20for%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1440820%22%20slang%3D%22en-US%22%3E%3CP%3EWorking%20from%20home%20has%20presented%20challenges%20in%20many%20areas%20and%20it%20is%20true%20for%20time%20synchronization%20on%20computers%20used%20at%20home%20to%20connect%20to%20work.%26nbsp%3BThis%20post%20touches%20upon%20some%20configuration%20ideas%20for%20domain%20clients%20used%20for%20working%20from%20home%20and%20connecting%20to%20their%20AD%20Domains%20remotely.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1440820%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESarathMadakasira%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1448564%22%20slang%3D%22en-US%22%3ERe%3A%20Domain%20Time%20Synchronization%20in%20the%20Age%20of%20Working%20from%20Home%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1448564%22%20slang%3D%22en-US%22%3E%3CP%3Eso%20just%20have%20a%20small%20query%20that%20I%20have%20a%20domain%20%3CA%20title%3D%22Fathers%20Day%22%20href%3D%22https%3A%2F%2Fwww.alltechnewsupdates.com%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ealltechnewsupdates.com%26nbsp%3B%3C%2FA%3Edo%20I%20need%20to%20use%20it%20for%20my%20domain...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

 

Happy Friday everyone! Brandon Wilson here posting on behalf of a new guest author, Sarath Madakasira. So, without further ado...

 

Working from home has presented challenges in many areas and it is true for time synchronization on computers used at home to connect to work. More specifically, time synchronization on domain-joined computers used from home is potentially affected due to the challenges of remote connectivity.

AD Domains and Forests were designed in an era of high-latency, low-bandwidth work networks and with security as a top criterion. These criteria extended to time synchronization within the Domains or Forests in the form of using NTP protocol enhanced with AD-based security. Time synchronization is also a requirement for Kerberos to function correctly in AD.

 

PCs that are not part of an AD domain still required time synchronization for usability. They were configured to use simple NTP over the internet to synchronize time periodically, with certain safeguards in place.

 

Because of the divergent nature of requirements of these two scenarios, they synchronized time from different sources and at varying intervals using different protocols.

 

Use of VPNs is an established practice for AD Domains, as is time synchronization in the Domain over VPN links. What is new in recent times is the pervasive use of VPNs by almost everyone to work from home and the quality/reliability of the VPNs available in each case. These factors have affected the time synchronization on the domain client PCs at home. Over a period, domain clients with poor domain connectivity can experience loss of domain functionality or other functionality due to their system time drifting too far from the current time.

 

This post touches upon some configuration ideas for domain clients used for working from home and connecting to their AD Domains remotely.

 

There are two factors to consider when synchronizing time on a domain machine in a “working from home” situation – security and maximum allowed time error. Domain time sync adequately covers the first aspect but can fall short on time error due to potential remote connectivity issues.

 

Assuming the domain is synchronized with UTC in some manner, one can synchronize domain clients with simple NTP servers over the internet as a backup mechanism to keep the time on them reasonably accurate. Although this involves the use of unsecured NTP protocol, some techniques can be used to minimize potential risks. NTP servers on the internet tend to be available and reachable from most internet end points.

 

Suggested Configuration Changes

 

Please see the Windows Time Service tools and settings reference for more information on W32time service settings. The following changes can be targeted for remote users via GPO or through GPO + ACLs or GPO + WMI filtering, specifics of which are not discussed here.  For ideas on how to use WMI filters for policies, see https://docs.microsoft.com/en-us/archive/blogs/askds/fun-with-wmi-filters-in-group-policy

 

Enable Backup Simple-NTP Sync

 

The following configures time.windows.com as a backup time server synchronizing every SpecialPollInterval seconds setting described in the next section.

Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters /v Type /t REG_SZ /d “AllSync” /f

Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters /v NtpServer /t REG_SZ /d “time.windows.com,0xB” /f

 

Decrease polling frequency of Simple NTP

 

This sets up very infrequent polling of the Simple NTP server. It should allow maintaining time accuracy within a few minutes of UTC on most machines.

Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config /v MaxPollInterval /t REG_DWORD /d 15

Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient /v SpecialPollInterval /t REG_DWORD /d 32768

 

Protection against Large Time Corrections

 

This configuration prevents a client from accepting large time corrections from any time server. You need to tailor this for your application and choosing too small of a value may prevent time correction.

Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config /v MaxNegPhaseCorrection /t REG_DWORD /d 54000

Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config /v MaxPosPhaseCorrection /t REG_DWORD /d 54000

 

Secure Time Seeding

 

Secure time seeding feature was introduced in Windows as a means of correcting very large time errors on consumer PCs. Although this feature was not intended to keep time accurate enough for AD Domains, it can help correct large time errors in certain scenarios and allows SSL/TLS to function. The feature is enabled by default on domain machines also.  Please refer to the blog post on more details and determine how you would like to use this feature in your domain.

 

Applying Configuration Changes

 

GP update triggers W32time service to reload the configuration. Alternately, restarting the W32time service or invoking w32tm.exe config update command works as well.

 

Additional Considerations

 

This may not always be practical, but remote machines of critical importance need good timekeeping holdover if they synchronize time over unreliable networks. The parameters mentioned above may need customization for your specific topology.

Please validate your configuration changes for intended results before widespread deployment.

 

 

Thanks for reading, and we hope this helps alleviate some time sync concerns for you!