{"id":7973,"date":"2018-12-09T01:08:00","date_gmt":"2018-12-09T00:08:00","guid":{"rendered":"http:\/\/159.69.82.204\/win\/?p=7973"},"modified":"2022-11-16T19:53:14","modified_gmt":"2022-11-16T18:53:14","slug":"tip-task-sequences-in-sccm-1810-with-error-handling","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2018\/12\/09\/tip-task-sequences-in-sccm-1810-with-error-handling\/","title":{"rendered":"Tip: Task sequences in SCCM 1810 with error handling"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" title=\"Update\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: left; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px\" border=\"0\" alt=\"Windows Update\" src=\"https:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2015\/02\/Update.jpg\" width=\"54\" height=\"54\">[<a href=\"https:\/\/www.borncity.com\/blog\/?p=212666\" target=\"_blank\" rel=\"noopener\">German<\/a>]There is a new variable <em>_SMSTSLastActionName <\/em>in SCCM 1810, which can be used to query the name of the last action in SCCM task sequences. This can be very helpful when checking for errors.<\/p>\n<p><!--more--><\/p>\n<p>Maybe this information is helpful for Administrators in enterprise environments using System Center Configuration Manager 1810. I don't use System Center Configuration Manager (SCCM).<\/p>\n<h2>The SCCM at a glance<\/h2>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Microsoft_System_Center_Configuration_Manager\" target=\"_blank\" rel=\"noopener\">Microsoft System Center Configuration Manager<\/a> (SCCM) is a tool that can handle software distribution, patch management, license monitoring, and more. Microsoft has set up a page on SCCM <a href=\"https:\/\/www.microsoft.com\/en-us\/cloud-platform\/system-center-configuration-manager\" target=\"_blank\" rel=\"noopener\">here<\/a>. <\/p>\n<p>Version 1810 of the System Center Configuration Manager has been <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/Configuration-Manager-Blog\/Update-1810-for-Configuration-Manager-current-branch-is-now\/ba-p\/289522\" target=\"_blank\" rel=\"noopener\">available since<\/a> the end of November 2018 (see <a href=\"https:\/\/borncity.com\/win\/2018\/11\/29\/configuration-manager-version-1810-cb-whats-new\/\">Configuration Manager Version 1810 (CB), what's new<\/a>). Microsoft has published the document <a href=\"https:\/\/docs.microsoft.com\/en-us\/sccm\/core\/plan-design\/changes\/whats-new-in-version-1810\" target=\"_blank\" rel=\"noopener\">What's new in version 1810 of Configuration Manager current branch<\/a>. A brief overview of functions (based on a Preview) may be read <a href=\"https:\/\/www.niallbrady.com\/2018\/10\/08\/a-quick-look-at-system-center-configuration-manager-technical-preview-version-1810\/\" target=\"_blank\" rel=\"noopener\">here<\/a>. <\/p>\n<h2>Tip for Error Handling in SCCM 1810<\/h2>\n<p>Adam Gross gives some hints about SCCM tricks on his <a href=\"https:\/\/twitter.com\/AdamGrossTX\" target=\"_blank\" rel=\"noopener\">Twitter channel<\/a>. The following tweet by Adam Gross has drawn my attention to his article in which he gives a tip on error handling in the System Center Configuration Manager 1810.&nbsp; <\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"de\">\n<p lang=\"en\" dir=\"ltr\">[New Blog Post] Building a Better Task Sequence &#8211; Tips for error handling using the new _SMSTSLastActionName variable in <a href=\"https:\/\/twitter.com\/hashtag\/ConfigMgr?src=hash&amp;ref_src=twsrc%5Etfw\">#ConfigMgr<\/a>\/<a href=\"https:\/\/twitter.com\/hashtag\/SCCM?src=hash&amp;ref_src=twsrc%5Etfw\">#SCCM<\/a> 1810.<a href=\"https:\/\/t.co\/lIdXhlsQ4O\">https:\/\/t.co\/lIdXhlsQ4O<\/a><\/p>\n<p>\u2014 Adam Gross (@AdamGrossTX) <a href=\"https:\/\/twitter.com\/AdamGrossTX\/status\/1068033560278372354?ref_src=twsrc%5Etfw\">29. November 2018<\/a><\/p><\/blockquote>\n<p><span id=\"preserve764ccc711beb4a8ab0b98c79d0b406ae\" class=\"wlWriterPreserve\"><SCRIPT charset=\"utf-8\" src=\"https:\/\/platform.twitter.com\/widgets.js\" async><\/SCRIPT><\/span> <\/p>\n<p>He wrote: <em>No matter how well you build your ConfigMgr Task Sequences, you will encounter failures. When you are testing in your lab, no big deal, but what about failures at a user's desk during an In-Place Upgrade? Adding structure to your Task Sequences that can properly handle the failures will add an extra layer of protection against incomplete deployments going unnoticed.<\/em><\/p>\n<p>One of the best new features in the System Center Configuration Manager 1810 in his opinion is the new variable _SMSTSLastActionName. This variable can be used to enter the name of the last action. So if something goes wrong with a task sequence, the variable can be used to determine where the sequence aborts. <\/p>\n<p>(Source: Adam Gross)<\/p>\n<p>Within his blog post <a href=\"https:\/\/www.asquaredozen.com\/2018\/11\/29\/building-a-better-task-sequence\/\" target=\"_blank\" rel=\"noopener\">Building a Better Task Sequence<\/a> Adam addresses the question of how this variable can be used for error diagnosis in the SCCM 1810 Task Sequence configuration. Details can be found in the blog post by Adam Gross. Maybe the article is helpful for one or the other administrator.&nbsp; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[German]There is a new variable _SMSTSLastActionName in SCCM 1810, which can be used to query the name of the last action in SCCM task sequences. This can be very helpful when checking for errors.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1547,22,2],"tags":[570,30,195,194],"class_list":["post-7973","post","type-post","status-publish","format-standard","hentry","category-software","category-update","category-windows","tag-sccm","tag-tip","tag-update","tag-windows"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/7973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=7973"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/7973\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=7973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=7973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=7973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}