{"id":576,"date":"2021-07-06T06:07:08","date_gmt":"2021-07-06T06:07:08","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=576"},"modified":"2021-07-06T06:07:23","modified_gmt":"2021-07-06T06:07:23","slug":"576","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/576\/","title":{"rendered":"How to Schedule a Task on a Windows Server ?"},"content":{"rendered":"<p>Performing numerous tasks manually on a UK windows hosting server could be a reasonably headache. So as to get rid of the manual tasks, windows server is equipped with the scheduler, wherever you&#8217;ll automate a program to run at specific timings.<\/p>\n<p>Unlike shared hosting, the dedicated server needs a lot of technical skills and time to manage the server tasks. In shared hosting, the web hosting service provider is that the one who manage all the server tasks. Automation becomes necessary when it comes to the dedicated servers. Performing tasks manually on a dedicated isn&#8217;t really easy as you think that. An easy mistake will mess up things and may damage your data.<\/p>\n<p>Task automation can be performed using two different methods:<\/p>\n<ol>\n<li>Using the graphical user interface.<\/li>\n<li>Using the command line.<\/li>\n<\/ol>\n<h3><strong>Scheduling Task on Windows Server using GUI<\/strong><\/h3>\n<p><strong>Step 1<\/strong>: Go to Start &gt;&gt; Programs &gt;&gt; Accessories &gt;&gt; System Tools &gt;&gt; Scheduled Tasks.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-577\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-1-300x225.png\" alt=\"windows-server-1\" width=\"1024\" height=\"768\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-1-300x225.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-1-768x576.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-1.png 1024w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Step 2<\/strong>: Click on \u201cAdd Scheduled Task\u201d and click on \u201cNext\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-578\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-2-300x187.gif\" alt=\"windows-server-2\" width=\"665\" height=\"415\" \/><\/p>\n<p><strong>Step 3<\/strong>: Select the program you wish to run.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-579\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-3-300x221.jpg\" alt=\"windows-server-3\" width=\"441\" height=\"325\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-3-300x221.jpg 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-3.jpg 441w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/p>\n<p><strong>Step 4<\/strong>: Specify a name to the task you want to schedule.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-580\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-4-300x221.png\" alt=\"windows-server-4\" width=\"441\" height=\"325\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-4-300x221.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-4.png 441w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/p>\n<p><strong>Step 5<\/strong>: Set up date and time options according to your requirements.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-581\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-5-300x218.gif\" alt=\"windows-server-5\" width=\"441\" height=\"320\" \/><\/p>\n<p><strong>Step 6<\/strong>: Insert your system password and simply hit the \u201cFinish\u201d button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-582\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-6-300x193.png\" alt=\"windows-server-6\" width=\"408\" height=\"262\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-6-300x193.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-6.png 408w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/p>\n<h3><strong>Scheduling Task on Windows Server using Command Line<\/strong><\/h3>\n<p>If you are having access to the command line on your remote server, then the task can be easily automated using the command line interface. Using a simple command string, you can automate a task through your command line:<\/p>\n<p><strong>For Hourly Schedule:<\/strong><\/p>\n<blockquote><p><em>schtasks \/create \/tn \u201cTask Name\u201d \/tr \u201cC:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.EXE\u201d \/sc hourly \/ru &lt;username&gt; \/rp &lt;password&gt;<\/em><\/p><\/blockquote>\n<p>The above command string will execute the specified program every hour.<\/p>\n<p><strong>For Daily Schedule:<\/strong><\/p>\n<blockquote><p><em>schtasks \/create \/tn \u201cTask Name\u201d \/tr \u201cC:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.EXE\u201d \/sc daily \/st 05:00:00 \/ru &lt;username&gt; \/rp &lt;password&gt;<\/em><\/p><\/blockquote>\n<p>The above command string will execute the specified program daily at the specified time.<\/p>\n<p>Make sure you replace \u201c<strong>Task Name<\/strong>\u201d with the name of your task and the \u201c<strong>C:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.EXE<\/strong>\u201d with the program path you wish to run every hour or daily at the specified time. You can configure the timings as per your requirements and schedule any program or task to run on your <a href=\"https:\/\/ownwebservers.com\/dedicated-hosting\/\" target=\"_blank\" rel=\"noopener\">dedicated server<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Performing numerous tasks manually on a UK windows hosting server could be a reasonably headache. So as to get rid of the manual tasks, windows server is equipped with the scheduler, wherever you&#8217;ll automate a program to run at specific timings. Unlike shared hosting, the dedicated server needs a lot of technical skills and time [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,12],"tags":[],"class_list":["post-576","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-windows-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Schedule a Task on a Windows Server ? - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/576\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Schedule a Task on a Windows Server ? - OWS KB\" \/>\n<meta property=\"og:description\" content=\"Performing numerous tasks manually on a UK windows hosting server could be a reasonably headache. So as to get rid of the manual tasks, windows server is equipped with the scheduler, wherever you&#8217;ll automate a program to run at specific timings. Unlike shared hosting, the dedicated server needs a lot of technical skills and time [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/576\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-06T06:07:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-06T06:07:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-1-300x225.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/576\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/windows-server-1.png\",\"width\":1024,\"height\":768,\"caption\":\"windows-server-1\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/576\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/576\/\",\"name\":\"How to Schedule a Task on a Windows Server ? - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/576\/#primaryimage\"},\"datePublished\":\"2021-07-06T06:07:08+00:00\",\"dateModified\":\"2021-07-06T06:07:23+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/576\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/576\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/576\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/576\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/576\/\",\"name\":\"How to Schedule a Task on a Windows Server ?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=576"}],"version-history":[{"count":2,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/576\/revisions"}],"predecessor-version":[{"id":584,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/576\/revisions\/584"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}