w32tm /query /status (see source and ReferenceId, in AD output should NOT be &#8220;Source: Local CMOS Clock&#8221; or &#8220;VM IC Time Synchronization Provider&#8221;, nor &#8220;Free-running System Clock&#8221; &#8211; maybe need to run below two commands) net time /set net stop/start w32time to compare time on DCs for small companies with only several AD DCs &#8211; for example from powershell: &#8220;net time \\dc00&#8243;,&#8221;net time \\dc01&#8243;,&#8221;net time \\dc02&#8243;,&#8221;net time \\dc03&#8243;,&#8221;net time \\dc04&#8221; | ForEach-Object {cmd.exe /c $_} for PDC emulator role:        w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual /reliable:yes  <span><a href="https://www.itforce.mn/index.php/2018/12/23/windows-useful-commands-to-troubleshoot-time-issues/" class="readmore">Continue reading &rarr;</a></span>{"id":1282,"date":"2018-12-23T13:19:48","date_gmt":"2018-12-23T05:19:48","guid":{"rendered":"https:\/\/www.itforce.mn\/?p=1282"},"modified":"2019-02-17T17:37:05","modified_gmt":"2019-02-17T09:37:05","slug":"windows-useful-commands-to-troubleshoot-time-issues","status":"publish","type":"post","link":"https:\/\/www.itforce.mn\/index.php\/2018\/12\/23\/windows-useful-commands-to-troubleshoot-time-issues\/","title":{"rendered":"Windows useful commands to troubleshoot time issues"},"content":{"rendered":"\r\n<ul class=\"wp-block-list\">\r\n<li><strong>w32tm \/query \/status<\/strong>\u00a0(see source and ReferenceId, in AD output should NOT be &#8220;<strong>Source: Local CMOS Clock<\/strong>&#8221; or &#8220;VM IC Time Synchronization Provider&#8221;, nor &#8220;Free-running System Clock&#8221; &#8211; maybe need to run below two commands)<\/li>\r\n<li><strong>net time \/set<\/strong><\/li>\r\n<li><strong>net stop\/start w32time<\/strong><\/li>\r\n<li>to compare time on DCs for small companies with only several AD DCs &#8211; for example from powershell: &#8220;<strong>net time <a href=\"file:\/\/dc-glmt%22,%22net\/\">\\\\dc00&#8243;,&#8221;net<\/a> time <a href=\"file:\/\/dc-glmt2%22,%22net\/\">\\\\dc01&#8243;,&#8221;net<\/a> time <a href=\"file:\/\/dc-glmt3%22,%22net\/\">\\\\dc02&#8243;,&#8221;net<\/a> time <a href=\"file:\/\/dc2%22,%22net\/\">\\\\dc03&#8243;,&#8221;net<\/a> time <a href=\"file:\/\/dc-glmt4\/\">\\\\dc04<\/a>&#8221; | ForEach-Object\u00a0{cmd.exe \/c $_}<\/strong><\/li>\r\n<li>for PDC emulator role:\u00a0 \u00a0 \u00a0 \u00a0<\/li>\r\n<li><strong>w32tm \/config \/manualpeerlist:pool.ntp.org \/syncfromflags:manual \/reliable:yes \/update <\/strong><\/li>\r\n<li>to reset computer time settings in <strong>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters<\/strong>:<\/li>\r\n<li>net stop w32time<\/li>\r\n<li><strong>w32tm \/unregister \u00a0<\/strong><\/li>\r\n<li><strong>w32tm \/register<\/strong><\/li>\r\n<li>net start w32time<\/li>\r\n<li>w32tm \/resync<\/li>\r\n<\/ul>\r\n\r\n<p>If you need to compare local and remote time:<\/p>\r\n<pre><strong>w32tm \/stripchart \/computer:dc00<\/strong><br \/>Tracking dc00 [192.168.1.10:123].<br \/>The current time is 1\/15\/2019 8:26:22 PM.<br \/>20:26:22, d:+00.0017563s o:+00.0274519s [ * ]<br \/>20:26:24, d:+00.0014726s o:+00.0354117s [ * ]<br \/>20:26:26, d:+00.0029066s o:+00.0262283s [ * ]<br \/>20:26:28, d:+00.0017425s o:+00.0309692s [ * ]<br \/>20:26:30, d:+00.0015372s o:+00.0361298s [ * ]<br \/>20:26:32, d:+00.0013512s o:+00.0273809s [ * ]<br \/>20:26:34, d:+00.0012632s o:+00.0364975s [ * ]<br \/>20:26:36, d:+00.0017833s o:+00.0286893s [ * ]<br \/>20:26:38, d:+00.0019420s o:+00.0312782s [ * ]<br \/>20:26:40, d:+00.0012876s o:+00.0389575s [ * ]<br \/>20:26:42, d:+00.0012943s o:+00.0322041s [ * ]<br \/>20:26:44, d:+00.0020414s o:+00.0316223s [ * ]\r\n<\/pre>","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1282","post","type-post","status-publish","format-standard","hentry","category-time-settings"],"_links":{"self":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/comments?post=1282"}],"version-history":[{"count":9,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1282\/revisions"}],"predecessor-version":[{"id":1443,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1282\/revisions\/1443"}],"wp:attachment":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/media?parent=1282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/categories?post=1282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/tags?post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}