{"id":74,"date":"2021-01-12T14:38:00","date_gmt":"2021-01-12T17:38:00","guid":{"rendered":"https:\/\/blog.4servers.co\/?p=74"},"modified":"2023-10-09T15:22:27","modified_gmt":"2023-10-09T18:22:27","slug":"agendar-um-reboot","status":"publish","type":"post","link":"https:\/\/blog.4srv.net\/index.php\/2021\/01\/12\/agendar-um-reboot\/","title":{"rendered":"Agendar um reboot no Windows Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Se voc\u00ea j\u00e1 teve a necessidade de agendar um reboot no Windows Server e tentou utilizar o tradicional comando \u201cat\u201d, reparou que a partir do Windows Server 2012 este comando foi descontinuado.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"167\" src=\"https:\/\/blog.4servers.co\/wp-content\/uploads\/2021\/04\/reboot1.jpg\" alt=\"\" class=\"wp-image-166\" srcset=\"https:\/\/blog.4srv.net\/wp-content\/uploads\/2021\/04\/reboot1.jpg 550w, https:\/\/blog.4srv.net\/wp-content\/uploads\/2021\/04\/reboot1-300x91.jpg 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Para realizar o agendamento do reboot, utilize o comando abaixo apenas alterando a hora e os dados de acordo com a sua necessidade:<\/p>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background wp-block-paragraph\">schtasks \/create \/tn \u201cScheduled Reboot\u201d \/tr \u201cshutdown \/r \/t 0\u201d \/sc once \/st 12:20:00 \/sd 02\/03\/2020 \/ru \u201cSystem\u201d<\/p>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background wp-block-paragraph\">Tamb\u00e9m \u00e9 poss\u00edvel realizar essa atividade atrav\u00e9s do Agendador de Tarefas (Task Scheduler) criando uma tarefa:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"300\" src=\"https:\/\/blog.4servers.co\/wp-content\/uploads\/2021\/04\/reboot2.jpg\" alt=\"\" class=\"wp-image-167\" srcset=\"https:\/\/blog.4srv.net\/wp-content\/uploads\/2021\/04\/reboot2.jpg 445w, https:\/\/blog.4srv.net\/wp-content\/uploads\/2021\/04\/reboot2-300x202.jpg 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/figure>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background wp-block-paragraph\">D\u00ea o nome desejado a ela e clique em avan\u00e7ar &gt; selecione o per\u00edodo que ser\u00e1 executada a tarefa &gt; avance novamente e insira a data e a hora para a reinicializa\u00e7\u00e3o &gt; clique em avan\u00e7ar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"567\" height=\"548\" src=\"https:\/\/blog.4servers.co\/wp-content\/uploads\/2021\/04\/reboot3.jpg\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/blog.4srv.net\/wp-content\/uploads\/2021\/04\/reboot3.jpg 567w, https:\/\/blog.4srv.net\/wp-content\/uploads\/2021\/04\/reboot3-300x290.jpg 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Em a\u00e7\u00f5es, selecione para iniciar um programa &gt; Selecione o Powershell e insira o argumento \u201cRestart-Computer -Force\u201d &gt; Avance e Conclua a cria\u00e7\u00e3o da tarefa.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cr\u00e9ditos: <a href=\"https:\/\/dicasdeinfra.com.br\/agendar-um-reboot-no-windows-server\/\" data-type=\"URL\" data-id=\"https:\/\/dicasdeinfra.com.br\/agendar-um-reboot-no-windows-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">Felipe Santos &#8211; Dicas de Infra<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se voc\u00ea j\u00e1 teve a necessidade de agendar um reboot no Windows Server e tentou utilizar o tradicional comando \u201cat\u201d, reparou que a partir do Windows Server 2012 este comando foi descontinuado.<\/p>\n","protected":false},"author":1,"featured_media":155,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,18],"tags":[32],"class_list":["post-74","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-so","category-windowsserver","tag-windows-server"],"_links":{"self":[{"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":4,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/posts\/74\/revisions\/218"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/media\/155"}],"wp:attachment":[{"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.4srv.net\/index.php\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}