{"id":3972,"date":"2017-12-04T05:10:48","date_gmt":"2017-12-04T13:10:48","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=3972"},"modified":"2017-12-04T05:10:48","modified_gmt":"2017-12-04T13:10:48","slug":"turn-off-during-maintenance","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/service-protector\/turn-off-during-maintenance\/","title":{"rendered":"Q &#038; A: How Do I Turn Off Service Protector During Scheduled Maintenance?"},"content":{"rendered":"<div align=\"center\"><img decoding=\"async\" src=\"\/blog\/images\/qa.png\" title=\"Q &#038; A\" alt=\"Q &#038; A\" border=\"0\" ><\/div>\n<div class=\"blog-qa-question-box\">\n<img decoding=\"async\" src=\"\/images\/quotes-transparent-21x21.png\">&nbsp;&nbsp;Wanted to know if there\u2019s a way for <a href=\"\/products\/ServiceProtector\/\">Service Protector<\/a> to <b>not monitor a service during a patching period<\/b> of time? Or any scheduled period of time without sending a million alerts?<\/p>\n<p align=\"right\">&#8212; Mark @ <a href=\"https:\/\/www.redroof.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Red Roof Inns<\/a><\/p>\n<\/div>\n<p>\nHi Mark. Apologies for the barrage of unnecessary emails! Unfortunately Service Protector doesn&#8217;t know that it is OK for your service to be down while you are patching. It is diligently doing its job.\n<\/p>\n<p>\nTo avoid the false alarms, we recommend shutting down Service Protector at the start of your maintenance window and reactivating it once patching has concluded. These operations can be performed from the Service Protector GUI or with the standard <a href=\"\/blog\/windows-services\/essential-tools-for-windows-services-net-command\/\">Windows NET command<\/a>.\n<\/p>\n<p>\nYou see, Service Protector creates a Windows Service for each service it monitors. If your service is named &#8220;MyService&#8221;, then Service Protector creates a service called &#8220;ServiceProtector: MyService&#8221; to watch your target service. Here is what it looks like for the &#8220;Print Spooler&#8221; service on our Windows Server 2016 machine:<\/p>\n<div align=\"center\">\n<a href=\"\/blog\/images\/service-protector-monitoring-spooler.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Service Protector: Spooler Service\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/service-protector-monitoring-spooler.png\" title=\"Service Protector: Spooler Service (click to enlarge)\" alt=\"Service Protector: Spooler Service\" border=\"0\" width=\"520\"><\/a>\n<\/div>\n<\/p>\n<p>\nNote that the service name may not be the same as the friendly &#8220;display name&#8221; you see in Service Protector (and <a href=\"\/blog\/windows-services\/essential-tools-windows-services-msc\/\" target=\"_blank\" rel=\"noopener noreferrer\">Services.msc<\/a>). For example, the service name of the &#8220;Print Spooler&#8221; service is actually &#8220;Spooler&#8221;:<\/p>\n<div align=\"center\">\n<a href=\"\/blog\/images\/print-spooler-properties.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Print Spooler Service Properties\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/print-spooler-properties.png\" width=\"406\" height=\"468\" title=\"Print Spooler Service Properties (click to enlarge)\" alt=\"Print Spooler Service Properties\" border=\"0\"><\/a>\n<\/div>\n<p><a href=\"\/WindowsServices\/FAQ.html#FindServiceName\">This post<\/a> shows how to find the service name.\n<\/p>\n<h2><b>How to Stop Protection at the Start of Maintenance<\/b><\/h2>\n<ul>\n<li>\n<h3>Stopping From the GUI<\/h3>\n<p>\nSelect <b>Stop &lt;ServiceName&gt;<\/b> from the <b>Protector<\/b> menu. This will shut down Service Protector but will leave your target service running:<br \/>\n<a href=\"\/blog\/images\/stop-service-protector.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Stop Protecting your Windows Service\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/stop-service-protector.png\" title=\"Stop Protecting your Windows Service (click to enlarge)\" alt=\"Stop Protecting your Windows Service\" border=\"0\" width=\"520\"><\/a>\n<\/p>\n<\/li>\n<li>\n<h3>Stopping From the Command Line<\/h3>\n<p>\nThis command will stop the instance of Service Protector monitoring a service named &#8220;MyService&#8221;:<\/p>\n<blockquote><p><b>NET STOP &#8220;ServiceProtector: MyService&#8221;<\/b><\/p><\/blockquote>\n<p>\nHere is what the process looks like for the Spooler service:<br \/>\n<a href=\"\/blog\/images\/net-stop-service-protector.gif\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Run NET STOP\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/net-stop-service-protector.gif\" width=\"536\" height=\"336\" title=\"Run NET STOP (click to enlarge)\" alt=\"Run NET STOP\" border=\"0\"><\/a>\n<\/p>\n<p>\nSimply run the NET STOP command before patching starts.\n<\/p>\n<\/li>\n<\/ul>\n<h2><b>How to Restart Protection at the End of Maintenance<\/b><\/h2>\n<ul>\n<li>\n<h3>Starting From the GUI<\/h3>\n<p>\nSelect <b>Start &lt;ServiceName&gt;<\/b> from the <b>Protector<\/b> menu. This will fire up Service Protector &#8212; and your target service if it&#8217;s idle:<br \/>\n<a href=\"\/blog\/images\/start-print-spooler-service.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Start Protecting your Windows Service\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/start-print-spooler-service.png\" title=\"Start Protecting your Windows Service (click to enlarge)\" alt=\"Start Protecting your Windows Service\" border=\"0\" width=\"520\"><\/a>\n<\/p>\n<\/li>\n<li>\n<h3>Starting From the Command Line<\/h3>\n<p>\nA slightly different version of the NET command will restart the instance of Service Protector monitoring a service named &#8220;MyService&#8221;:<\/p>\n<blockquote><p><b>NET START &#8220;ServiceProtector: MyService&#8221;<\/b><\/p><\/blockquote>\n<p>\nRestarting protection for the Spooler service looks like this:<br \/>\n<a href=\"\/blog\/images\/net-start-service-protector.gif\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Run NET START\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/net-start-service-protector.gif\" width=\"537\" height=\"336\" title=\"Run NET START (click to enlarge)\" alt=\"Run NET START\" border=\"0\"><\/a>\n<\/p>\n<p>\nRun the NET START command once your system is back to normal.\n<\/p>\n<\/li>\n<\/ul>\n<h2><b>How to Stop and Restart Service Protection Automatically<\/b><\/h2>\n<p>\nFor patching that occurs at a defined time, we recommend using the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Windows_Task_Scheduler\" target=\"_blank\" rel=\"noopener noreferrer\">Windows Task Scheduler<\/a> to automate the process. Create a pair of scheduled tasks &#8212; one to stop protection and the other to restart it.<\/p>\n<p>\nFor example, if maintenance occurs every Saturdays from 1 AM to 3 AM, your first scheduled task could run NET STOP at 12:59 AM. The second task could be configured to run NET START at 3:01 AM.<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/trinium-replaces-task-scheduler\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Customer Spotlight\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/cusomer-spotlight-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">&quot;We replaced Windows Task Scheduler with AlwaysUp and never looked back!&quot;<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/secure-windows-service\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How do I Protect my AlwaysUp Services from Unauthorized Changes?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/protect-alwaysup-service-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How do I Protect my AlwaysUp Services from Unauthorized Changes?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/net-vs-sc\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Should I use NET or SC to start\/stop\/restart our Windows Services?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/net-vs-sc-command-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Should I use NET or SC to start\/stop\/restart our Windows Services?<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;Wanted to know if there\u2019s a way for Service Protector to not monitor a service during a patching period of time? Or any scheduled period of time without sending a million alerts? &#8212; Mark @ Red Roof Inns Hi Mark. &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/service-protector\/turn-off-during-maintenance\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3560,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[100,108,127,147,161,164],"class_list":["post-3972","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-service-protector","tag-maintenance","tag-net-exe","tag-qa","tag-service-protector-tag","tag-product-support","tag-task-scheduler"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=3972"}],"version-history":[{"count":0,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3972\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/3560"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=3972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=3972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=3972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}