{"id":298,"date":"2015-04-13T19:05:00","date_gmt":"2015-04-13T19:05:00","guid":{"rendered":"https:\/\/www.mainmind.com\/blog\/?p=298"},"modified":"2020-07-26T18:21:47","modified_gmt":"2020-07-26T18:21:47","slug":"sincronizar-hora-y-fecha","status":"publish","type":"post","link":"https:\/\/www.mainmind.com\/blog\/sincronizar-hora-y-fecha\/","title":{"rendered":"Sincronizar hora y fecha"},"content":{"rendered":"<p>En ocasiones es necesario utilizar otra fuente o servidor NTP diferentes al predeterminado, deber&iacute;amos sincronizar nuestro dominio principal con un servidor externo, existen diversos escenarios pero en todos ellos podemos utilizar el siguiente comando, en este caso contra servidores horarios de Espa&ntilde;a:<\/p>\n<pre class=\"brush:bash;auto-links:false;toolbar:false\" contenteditable=\"false\">net stop w32time\nw32tm \/config \/syncfromflags:manual \/manualpeerlist:\"es.pool.ntp.org\"\nw32tm \/config \/reliable:yes\nnet start w32time<\/pre>\n<p>Podemos conocer el estado de los controladores de dominio y los equipos con&nbsp;los comando:<\/p>\n<pre class=\"brush:bash;auto-links:false;toolbar:false\" contenteditable=\"false\">w32tm \/monitor\nw32tm \/query \/configuration<\/pre>\n<p>Ten en cuenta que las m&aacute;quinas virtuales pueden tener activados servicios de sincronizaci&oacute;n adicional con la m&aacute;quina host, que interfieren como en HyperV:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"margin-right: auto; margin-left: auto; display: block;\" src=\"\/blog\/wp-content\/uploads\/\/2016\/windowsVirtualServerNTP_hyperv.jpg\" alt=\"\" width=\"518\" height=\"488\" \/><\/p>\n<p>Para forzar la re sincronizaci&oacute;n utilizada el mismo comando:<\/p>\n<pre class=\"brush:bash;auto-links:false;toolbar:false\" contenteditable=\"false\">w32tm \/resync<\/pre>\n<p><strong>&nbsp;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En ocasiones es necesario utilizar otra fuente o servidor NTP diferentes al predeterminado, deber&iacute;amos sincronizar nuestro dominio principal con un servidor externo, existen diversos escenarios pero en todos ellos podemos utilizar el siguiente comando, en este caso contra servidores horarios de Espa&ntilde;a: net stop w32time w32tm \/config \/syncfromflags:manual \/manualpeerlist:\u00bbes.pool.ntp.org\u00bb w32tm \/config \/reliable:yes net start w32time [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[211,83,214,213,215,212,210],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-windows-client","tag-date","tag-directorio-activo","tag-entorno-windows","tag-hora-y-fecha","tag-ntp","tag-sincronizar","tag-sync"],"_links":{"self":[{"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":0,"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mainmind.com\/blog\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}