{"id":679,"date":"2013-05-29T18:18:02","date_gmt":"2013-05-29T16:18:02","guid":{"rendered":"http:\/\/sccmfaq.wordpress.com\/?p=679"},"modified":"2013-05-29T18:18:02","modified_gmt":"2013-05-29T16:18:02","slug":"sccm-2012-reboot-after-installation-in-maintenance-window","status":"publish","type":"post","link":"https:\/\/blog.hosebei.ch\/?p=679","title":{"rendered":"SCCM 2012 &#8211; Reboot after Installation in Maintenance Window"},"content":{"rendered":"<p>When you patch your Server automatically, and also want to reboot the machines when a maintenance window is active, that is quite easy. Modify the Settings of the specific collection, I would recommend to use collections created for the use of maintenance window only, in this example, we have a short window of 45 minutes:<!--more--><br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/05\/maintenance-window01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-680 aligncenter\" alt=\"Collection Maintenance Window\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/05\/maintenance-window01.png?w=261\" width=\"261\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window01.png 532w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window01-262x300.png 262w\" sizes=\"auto, (max-width: 261px) 100vw, 261px\" \/><\/a>When you now deploy as example Windows Updates, and you do not suppress reboots, which is an Option when you create a deployment, you expect, that the Clients in this collection will install the updates and reboot, if the maintenance window is available.<\/p>\n<p>This will work very well, till you have Users connecting on those Clients (probably Servers) and just Close the Remote Desktop session, so the session will remain opened. As long as a User Session is active, the settings from the Client restart behaviour are applied, which means, the SCCM Client Shows a message 90 minutes to the user. Those are the standard settings:<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/05\/maintenance-window02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-681\" alt=\"Computer Restart\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/05\/maintenance-window02.png?w=300\" width=\"300\" height=\"231\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window02.png 792w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window02-300x232.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window02-768x593.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align:left;\">This means, that the disconnected\u00a0but still active session will get a notification, that in 90 minutes the Computer or Server will be restarted. The Problem is, that the maintenance window is over, when the Client reaches this 90 Minute Limit.<\/p>\n<p style=\"text-align:left;\">If you want to get the Computer restart inside the Maintenance Window, even when a User is still connected, and the maintenance window is shorter than the temporary notification time, you have to use another value for the notification.<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/05\/maintenance-window03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-686\" alt=\"Client setting\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/05\/maintenance-window03.png?w=300\" width=\"300\" height=\"229\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window03.png 794w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window03-300x229.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/05\/maintenance-window03-768x587.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you patch your Server automatically, and also want to reboot the machines when a maintenance window is active, that is quite easy. Modify the Settings of the specific collection, I would recommend to use collections created for the use of maintenance window only, in this example, we have a short window of 45 minutes:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,41],"tags":[],"class_list":["post-679","post","type-post","status-publish","format-standard","hentry","category-collection","category-updates-management"],"_links":{"self":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts\/679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=679"}],"version-history":[{"count":0,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts\/679\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}