{"id":588,"date":"2010-12-20T12:43:18","date_gmt":"2010-12-20T17:43:18","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=588"},"modified":"2010-12-20T12:43:18","modified_gmt":"2010-12-20T17:43:18","slug":"script-to-reboot-computers-at-night","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=588","title":{"rendered":"script to reboot computers at night"},"content":{"rendered":"<p>Right, and if you wanted to do this through GP, you could create a startup<br \/>\nscript batch file that calls shutdown.exe from an AT command line:<\/p>\n<p>at 20:00 \/every:M,T,W,Th,F,S,Su &#8220;shutdown \/r \/f&#8221;<\/p>\n<p>Note that this will create a new scheduler job every time it runs, so you<br \/>\nprobably only want it in your startup script for a day or two. Otherwise you<br \/>\ncould preface it with the following command:<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/www.ms-news.net\/f3707\/grrr-how-do-i-get-150-systems-reboot-3am-every-night-through-gpo-1850712.html\" target=\"_blank\">http:\/\/www.ms-news.net\/f3707\/grrr-how-do-i-get-150-systems-reboot-3am-every-night-through-gpo-1850712.html<\/a><\/p>\n<p>at 1 \/d<br \/>\nat 20:00 \/every:M,T,W,Th,F,S,Su &#8220;shutdown \/r \/f&#8221;<\/p>\n<p>Note that this assumes that the current job id is always 1, which may not be<br \/>\nthe case.<\/p>\n<p>&#8212;<br \/>\nDarren Mar-Elia<br \/>\nMS-MVP-Windows Server&#8211;Group Policy<\/p>\n<p>Simplify Group Policy Troubleshooting with the NEW GPExpert Troubleshooting<br \/>\nPak 1.0 at http:\/\/www.sdmsoftware.com\/products.php<\/p>\n<p>Visit the GPOGUY: http:\/\/www.gpoguy.com &#8212; The Windows Group Policy<br \/>\nInformation Hub:<br \/>\nFAQs, Training Videos, Whitepapers and Utilities for all things Group<br \/>\nPolicy-related<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Right, and if you wanted to do this through GP, you could create a startup script batch file that calls shutdown.exe from an AT command line: at 20:00 \/every:M,T,W,Th,F,S,Su &#8220;shutdown \/r \/f&#8221; Note that this will create a new scheduler &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=588\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=588"}],"version-history":[{"count":2,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":590,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/590"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}