SOLVED
Home

How to Sync Windows Server Time to Redhat NTP Server

%3CLINGO-SUB%20id%3D%22lingo-sub-276804%22%20slang%3D%22en-US%22%3EHow%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276804%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20have%20NTP%20Server%20running%20on%20Redhat%206%20and%20i%20don't%20know%20how%20configure%20the%20NTP%20Server%20to%20my%20Windows%20Server%202008%20and%202012%20which%20is%20an%20AD.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EI%20tried%20to%20set%20it%20as%20NTP%20and%20NT5DS%20mode%2C%20but%20i%20can't%20verify%20if%20windows%20server%20is%20already%20syncing%20to%20my%20Redhat%206%20NTP%20Server%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-276804%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActive%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Entp%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277402%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277402%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20say%20that%20you%20should%20adjust%20this%20to%20a%20GPO%20in%20AD%20and%20not%20use%20the%20time%20commands.%20If%20you%20review%20these%20links%2C%20they%20should%20walk%20you%20through%20setting%20things%20up%20properly%20for%20using%20a%20WMI%20filter%20to%20%22walk%20with%22%20your%20PDCe%20role%20and%20then%20setting%20your%20time%20for%20that%20system%20for%20NTP%20targeting%20your%20Red%20Hat%20systems%20or%20any%20other%20Stratum%201%20NTP%20source%20(tick%20or%20tock%2C%20time.windows%20or%20something%20else).%3C%2FP%3E%0A%3CP%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Faskpfeplat%2F2018%2F10%2F01%2Ftick-tock-time-to-dive-deep%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Faskpfeplat%2F2018%2F10%2F01%2Ftick-tock-time-to-dive-deep%2F%3C%2FA%3E%3C%2FFONT%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Faskpfeplat%2F2018%2F08%2F20%2Ftick-tock-time-to-configure-the-clock-time-settings-and-controls-in-the-modern-environment%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Faskpfeplat%2F2018%2F08%2F20%2Ftick-tock-time-to-configure-the-clock-time-settings-and-controls-in-the-modern-environment%2F%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Faskpfeplat%2F2018%2F08%2F13%2Ftick-tock-time-to-catch-up-whats-new-with-windows-time-in-server-2019%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Faskpfeplat%2F2018%2F08%2F13%2Ftick-tock-time-to-catch-up-whats-new-with-windows-time-in-server-2019%2F%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%3EFor%20the%20back%20end%20TechNet%20reference%20go%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fnetworking%2Fwindows-time-service%2Fwindows-time-service-tools-and-settings%23windows-time-service-group-policy-settings%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fnetworking%2Fwindows-time-service%2Fwindows-time-service-tools-and-settings%23windows-time-service-group-policy-settings%3C%2FA%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277221%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277221%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F161137%22%20target%3D%22_blank%22%3E%40John%20Vincent%20Manansala%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Funregister%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20following%20error%20occurred%3A%20Access%20is%20denied.%20(0x80070005)%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3ESounds%20like%20things%20failed.%20I'd%20try%20it%20all%20over%20again%20but%20with%20elevated%20permissions%20(run%20as%20administrator)%3C%2FP%3E%0A%3CP%3EResult%20should%20have%20been%3B%20(no%20registry%20editing%20is%20needed)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EC%3A%5CWindows%5CSystem32%26gt%3Bw32tm%20%2Funregister%3CBR%20%2F%3EW32Time%20successfully%20unregistered.%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26lt%3B----------------------------------%3C%2FP%3E%0A%3CP%3EC%3A%5CWindows%5CSystem32%26gt%3Bnet%20stop%20w32time%3CBR%20%2F%3EThe%20Windows%20Time%20service%20is%20stopping.The%20service%20name%20is%20invalid.%3C%2FP%3E%0A%3CP%3EMore%20help%20is%20available%20by%20typing%20NET%20HELPMSG%202185.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EC%3A%5CWindows%5CSystem32%26gt%3Bw32tm%20%2Fregister%3CBR%20%2F%3EW32Time%20successfully%20registered.%3C%2FP%3E%0A%3CP%3EC%3A%5CWindows%5CSystem32%26gt%3Bnet%20start%20w32time%3CBR%20%2F%3EThe%20Windows%20Time%20service%20is%20starting.%3CBR%20%2F%3EThe%20Windows%20Time%20service%20was%20started%20successfully.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EC%3A%5CWindows%5CSystem32%26gt%3Bw32tm%20%2Fconfig%20%2Fmanualpeerlist%3A192.168.49.64%20%2Fsyncfromflags%3Amanual%20%2Freliable%3Ayes%20%2Fupdate%3CBR%20%2F%3EThe%20command%20completed%20successfully.%3C%2FP%3E%0A%3CP%3EC%3A%5CWindows%5CSystem32%26gt%3Bnet%20stop%20w32time%3CBR%20%2F%3EThe%20Windows%20Time%20service%20is%20stopping.%3CBR%20%2F%3EThe%20Windows%20Time%20service%20was%20stopped%20successfully.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EC%3A%5CWindows%5CSystem32%26gt%3Bnet%20start%20w32timeThe%20Windows%20Time%20service%20is%20starting.The%20Windows%20Time%20service%20was%20started%20successfully.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EC%3A%5CWindows%5CSystem32%26gt%3Bw32tm%20%2Fquery%20%2Fconfiguration%3CBR%20%2F%3E%5BConfiguration%5D%3C%2FP%3E%0A%3CP%3EEventLogFlags%3A%202%20(Local)%3CBR%20%2F%3EAnnounceFlags%3A%205%20(Local)%3CBR%20%2F%3ETimeJumpAuditOffset%3A%2028800%20(Local)%3CBR%20%2F%3EMinPollInterval%3A%206%20(Local)%3CBR%20%2F%3EMaxPollInterval%3A%2010%20(Local)%3CBR%20%2F%3EMaxNegPhaseCorrection%3A%204294967295%20(Local)%3CBR%20%2F%3EMaxPosPhaseCorrection%3A%204294967295%20(Local)%3CBR%20%2F%3EMaxAllowedPhaseOffset%3A%20300%20(Local)%3C%2FP%3E%0A%3CP%3EFrequencyCorrectRate%3A%204%20(Local)%3CBR%20%2F%3EPollAdjustFactor%3A%205%20(Local)%3CBR%20%2F%3ELargePhaseOffset%3A%2050000000%20(Local)%3CBR%20%2F%3ESpikeWatchPeriod%3A%20900%20(Local)%3CBR%20%2F%3ELocalClockDispersion%3A%2010%20(Local)%3CBR%20%2F%3EHoldPeriod%3A%205%20(Local)%3CBR%20%2F%3EPhaseCorrectRate%3A%201%20(Local)%3CBR%20%2F%3EUpdateInterval%3A%20100%20(Local)%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%5BTimeProviders%5D%3C%2FP%3E%0A%3CP%3ENtpClient%20(Local)%3CBR%20%2F%3EDllName%3A%20C%3A%5CWindows%5CSYSTEM32%5Cw32time.DLL%20(Local)%3CBR%20%2F%3EEnabled%3A%201%20(Local)%3CBR%20%2F%3EInputProvider%3A%201%20(Local)%3CBR%20%2F%3EAllowNonstandardModeCombinations%3A%201%20(Local)%3CBR%20%2F%3EResolvePeerBackoffMinutes%3A%2015%20(Local)%3CBR%20%2F%3EResolvePeerBackoffMaxTimes%3A%207%20(Local)%3CBR%20%2F%3ECompatibilityFlags%3A%202147483648%20(Local)%3CBR%20%2F%3EEventLogFlags%3A%201%20(Local)%3CBR%20%2F%3ELargeSampleSkew%3A%203%20(Local)%3CBR%20%2F%3ESpecialPollInterval%3A%201024%20(Local)%3CBR%20%2F%3EType%3A%20NTP%20(Local)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3B--------------------------------------------%3CBR%20%2F%3ENtpServer%3A%20192.168.49.64%20(Local)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3B--------------------------------------------%3C%2FP%3E%0A%3CP%3EVMICTimeProvider%20(Local)%3CBR%20%2F%3EDllName%3A%20C%3A%5CWindows%5CSystem32%5Cvmictimeprovider.dll%20(Local)%3CBR%20%2F%3EEnabled%3A%201%20(Local)%3CBR%20%2F%3EInputProvider%3A%201%20(Local)%3C%2FP%3E%0A%3CP%3ENtpServer%20(Local)%3CBR%20%2F%3EDllName%3A%20C%3A%5CWindows%5CSYSTEM32%5Cw32time.DLL%20(Local)%3CBR%20%2F%3EEnabled%3A%200%20(Local)%3CBR%20%2F%3EInputProvider%3A%200%20(Local)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EC%3A%5CWindows%5CSystem32%26gt%3Bw32tm%20%2Fquery%20%2Fsource%3CBR%20%2F%3E192.168.49.64%3C%2FP%3E%0A%3CP%3EC%3A%5CWindows%5CSystem32%26gt%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277218%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277218%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Dave%2C%3C%2FP%3E%3CP%3EI%20tried%20the%20commands%20that%20provided%20to%20me%20and%20the%20result%20is%20below.%3C%2FP%3E%3CP%3EThe%20server%20can't%20still%20sync%20on%20my%20redhat%20linux%20NTP%20Server.%3C%2FP%3E%3CP%3EI%20also%20checked%20the%20regedit%20of%20the%20server%20and%20the%20IP%20is%20already%20declared.%3C%2FP%3E%3CP%3Emay%20i%20know%20if%20the%20service%20type%20is%20NTP%20or%20NT5DS%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Funregister%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20following%20error%20occurred%3A%20Access%20is%20denied.%20(0x80070005)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bnet%20stop%20w32time%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20Windows%20Time%20service%20is%20stopping.The%20service%20name%20is%20invalid.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EMore%20help%20is%20available%20by%20typing%20NET%20HELPMSG%202185.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Fregister%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EW32Time%20successfully%20registered.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bnet%20start%20w32time%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20Windows%20Time%20service%20is%20starting.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20Windows%20Time%20service%20was%20started%20successfully.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Fconfig%20%2Fmanualpeerlist%3A192.168.1.20%20%2Fsyncfromfl%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Eags%3Amanual%20%2Freliable%3Ayes%20%2Fupdate%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20command%20completed%20successfully.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bnet%20stop%20w32time%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20Windows%20Time%20service%20is%20stopping.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20Windows%20Time%20service%20was%20stopped%20successfully.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EC%3A%5CUsers%5Cadministrator%26gt%3Bnet%20start%20w32timeThe%20Windows%20Time%20service%20is%20starting.The%20Windows%20Time%20service%20was%20started%20successfully.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Fquery%20%2Fsource%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ELocal%20CMOS%20Clock%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Fquery%20%2Fconfiguration%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5BConfiguration%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EEventLogFlags%3A%202%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EAnnounceFlags%3A%205%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ETimeJumpAuditOffset%3A%2028800%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EMinPollInterval%3A%206%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EMaxPollInterval%3A%2010%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EMaxNegPhaseCorrection%3A%20172800%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EMaxPosPhaseCorrection%3A%20172800%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EMaxAllowedPhaseOffset%3A%20300%20(Local)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EFrequencyCorrectRate%3A%204%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EPollAdjustFactor%3A%205%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ELargePhaseOffset%3A%2050000000%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ESpikeWatchPeriod%3A%20900%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ELocalClockDispersion%3A%2010%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EHoldPeriod%3A%205%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EPhaseCorrectRate%3A%207%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EUpdateInterval%3A%20100%20(Local)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CEM%3E%5BTimeProviders%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3ENtpServer%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EDllName%3A%20C%3A%5CWindows%5Csystem32%5Cw32time.DLL%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EEnabled%3A%201%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EInputProvider%3A%200%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EAllowNonstandardModeCombinations%3A%201%20(Local)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EVMICTimeProvider%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EDllName%3A%20C%3A%5CWindows%5CSystem32%5Cvmictimeprovider.dll%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EEnabled%3A%201%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EInputProvider%3A%201%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ENtpClient%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EDllName%3A%20C%3A%5CWindows%5Csystem32%5Cw32time.DLL%20(Local)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EEnabled%3A%200%20(Policy)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EInputProvider%3A%201%20(Local)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CEM%3EC%3A%5CUsers%5Cadministrator%26gt%3Bw32tm%20%2Fstripchart%20%2Fcomputer%3A192.168.1.20%20%2Fdataonly%20%2Fsa%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Emples%3A5%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ETracking%20192.168.1.20%20%5B192.168.1.20%3A123%5D.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ECollecting%205%20samples.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EThe%20current%20time%20is%2010%2F24%2F2018%209%3A37%3A07%20AM.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E09%3A37%3A07%2C%20-02.7448152s%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E09%3A37%3A09%2C%20-02.7514998s%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E09%3A37%3A11%2C%20-02.7514433s%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E09%3A37%3A13%2C%20-02.7514798s%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E09%3A37%3A15%2C%20-02.7514026s%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277216%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277216%22%20slang%3D%22en-US%22%3E%3CP%3ESounds%20good%2C%20you're%20welcome.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277214%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277214%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Dave%2C%3C%2FP%3E%3CP%3EI%20will%20try%20this%20one%20and%20give%20you%20feedback.%3C%2FP%3E%3CP%3EThank%20you%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276916%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Sync%20Windows%20Server%20Time%20to%20Redhat%20NTP%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276916%22%20slang%3D%22en-US%22%3E%3CP%3EI'd%20try%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3Ew32tm%20%2Funregister%3C%2FLI%3E%0A%3CLI%3Enet%20stop%20w32time%3C%2FLI%3E%0A%3CLI%3Ew32tm%20%2Fregister%3C%2FLI%3E%0A%3CLI%3Enet%20start%20w32time%3C%2FLI%3E%0A%3CLI%3Ew32tm%20%2Fconfig%20%2Fmanualpeerlist%3A%3CREDHAT%20ip%3D%22%22%20address%3D%22%22%3E%20%2Fsyncfromflags%3Amanual%20%2Freliable%3Ayes%20%2Fupdate%3C%2FREDHAT%3E%3C%2FLI%3E%0A%3CLI%3Enet%20stop%20w32time%3C%2FLI%3E%0A%3CLI%3Enet%20start%20w32time%3C%2FLI%3E%0A%3CLI%3Ethen%20check%3C%2FLI%3E%0A%3CLI%3Ew32tm%20%2Fquery%20%2Fsource%3C%2FLI%3E%0A%3CLI%3Ew32tm%20%2Fquery%20%2Fconfiguration%3C%2FLI%3E%0A%3CLI%3Ew32tm%20%2Fstripchart%20%2Fcomputer%3A%3CREDHAT%20ip%3D%22%22%20address%3D%22%22%3E%20%2Fdataonly%20%2Fsamples%3A5%3C%2FREDHAT%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
John Vincent Manansala
Occasional Contributor

I have NTP Server running on Redhat 6 and i don't know how configure the NTP Server to my Windows Server 2008 and 2012 which is an AD.
I tried to set it as NTP and NT5DS mode, but i can't verify if windows server is already syncing to my Redhat 6 NTP Server

6 Replies

I'd try;

  1. w32tm /unregister
  2. net stop w32time
  3. w32tm /register
  4. net start w32time
  5. w32tm /config /manualpeerlist:<redhat ip address> /syncfromflags:manual /reliable:yes /update
  6. net stop w32time
  7. net start w32time
  8. then check
  9. w32tm /query /source
  10. w32tm /query /configuration
  11. w32tm /stripchart /computer:<redhat ip address> /dataonly /samples:5

 

 

Hi Dave,

I will try this one and give you feedback.

Thank you :) 

Sounds good, you're welcome.

 

 

Hi Dave,

I tried the commands that provided to me and the result is below.

The server can't still sync on my redhat linux NTP Server.

I also checked the regedit of the server and the IP is already declared.

may i know if the service type is NTP or NT5DS? 

 

C:\Users\administrator>w32tm /unregister
The following error occurred: Access is denied. (0x80070005)

C:\Users\administrator>net stop w32time
The Windows Time service is stopping.The service name is invalid.

More help is available by typing NET HELPMSG 2185.


C:\Users\administrator>w32tm /register
W32Time successfully registered.

C:\Users\administrator>net start w32time
The Windows Time service is starting.
The Windows Time service was started successfully.


C:\Users\administrator>w32tm /config /manualpeerlist:192.168.1.20 /syncfromfl
ags:manual /reliable:yes /update
The command completed successfully.

C:\Users\administrator>net stop w32time
The Windows Time service is stopping.
The Windows Time service was stopped successfully.


C:\Users\administrator>net start w32time
The Windows Time service is starting.
The Windows Time service was started successfully.


C:\Users\administrator>w32tm /query /source
Local CMOS Clock

C:\Users\administrator>w32tm /query /configuration
[Configuration]

EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 6 (Local)
MaxPollInterval: 10 (Local)
MaxNegPhaseCorrection: 172800 (Local)
MaxPosPhaseCorrection: 172800 (Local)
MaxAllowedPhaseOffset: 300 (Local)

FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 7 (Local)
UpdateInterval: 100 (Local)


[TimeProviders]

NtpServer (Local)
DllName: C:\Windows\system32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 0 (Local)
AllowNonstandardModeCombinations: 1 (Local)

VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
NtpClient (Local)
DllName: C:\Windows\system32\w32time.DLL (Local)
Enabled: 0 (Policy)
InputProvider: 1 (Local)


C:\Users\administrator>w32tm /stripchart /computer:192.168.1.20 /dataonly /sa
mples:5
Tracking 192.168.1.20 [192.168.1.20:123].
Collecting 5 samples.
The current time is 10/24/2018 9:37:07 AM.
09:37:07, -02.7448152s
09:37:09, -02.7514998s
09:37:11, -02.7514433s
09:37:13, -02.7514798s
09:37:15, -02.7514026s


@John Vincent Manansala wrote:

 

 

C:\Users\administrator>w32tm /unregister
The following error occurred: Access is denied. (0x80070005)

 


Sounds like things failed. I'd try it all over again but with elevated permissions (run as administrator)

Result should have been; (no registry editing is needed)

 

C:\Windows\System32>w32tm /unregister
W32Time successfully unregistered.        <----------------------------------

C:\Windows\System32>net stop w32time
The Windows Time service is stopping.The service name is invalid.

More help is available by typing NET HELPMSG 2185.


C:\Windows\System32>w32tm /register
W32Time successfully registered.

C:\Windows\System32>net start w32time
The Windows Time service is starting.
The Windows Time service was started successfully.


C:\Windows\System32>w32tm /config /manualpeerlist:192.168.49.64 /syncfromflags:manual /reliable:yes /update
The command completed successfully.

C:\Windows\System32>net stop w32time
The Windows Time service is stopping.
The Windows Time service was stopped successfully.


C:\Windows\System32>net start w32time
The Windows Time service is starting.
The Windows Time service was started successfully.


C:\Windows\System32>w32tm /query /configuration
[Configuration]

EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 6 (Local)
MaxPollInterval: 10 (Local)
MaxNegPhaseCorrection: 4294967295 (Local)
MaxPosPhaseCorrection: 4294967295 (Local)
MaxAllowedPhaseOffset: 300 (Local)

FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 100 (Local)


[TimeProviders]

NtpClient (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 1024 (Local)
Type: NTP (Local)                              <--------------------------------------------
NtpServer: 192.168.49.64 (Local)      <--------------------------------------------

VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)

NtpServer (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)

 

C:\Windows\System32>w32tm /query /source
192.168.49.64

C:\Windows\System32>

 

 

Solution

I would say that you should adjust this to a GPO in AD and not use the time commands. If you review these links, they should walk you through setting things up properly for using a WMI filter to "walk with" your PDCe role and then setting your time for that system for NTP targeting your Red Hat systems or any other Stratum 1 NTP source (tick or tock, time.windows or something else).

https://blogs.technet.microsoft.com/askpfeplat/2018/10/01/tick-tock-time-to-dive-deep/ 

https://blogs.technet.microsoft.com/askpfeplat/2018/08/20/tick-tock-time-to-configure-the-clock-time...

https://blogs.technet.microsoft.com/askpfeplat/2018/08/13/tick-tock-time-to-catch-up-whats-new-with-...

 

For the back end TechNet reference go here: https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service...

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies