{"id":1643,"date":"2014-11-21T15:37:40","date_gmt":"2014-11-21T14:37:40","guid":{"rendered":"http:\/\/sccmfaq.wordpress.com\/?p=1643"},"modified":"2014-11-21T15:37:40","modified_gmt":"2014-11-21T14:37:40","slug":"sccm-2012-display-special-lock-screen-when-osd-was-unsuccessful","status":"publish","type":"post","link":"https:\/\/blog.hosebei.ch\/?p=1643","title":{"rendered":"SCCM 2012 &#8211; Display special lock Screen when OSD was unsuccessful"},"content":{"rendered":"<p>Hi, here&#8217;s Martin again with a blog about how to Display a Special Lock Screen, when the Operating System Deployment Task Sequence Fails. When you are using System Center 2012 Configuration Manager, you might want to have an easy solution to see, if a OSD was successful or not. Normally you see this Picture after a Windows 8.1 OSD:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1644\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock01.png?w=300\" alt=\"Windows 8.1 Normal Lock Screen\" width=\"300\" height=\"224\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock01.png 1023w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock01-300x225.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock01-768x575.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<!--more--><br \/>\nSo even if there are better and more robust Solutions through Status Message rules, sometimes you would like just to get a visible check. In this blog, I&#8217;ll Show you an easy way to achieve this.<\/p>\n<p>The following steps has to be taken:<br \/>\n1. Create a failure Picture<br \/>\n2. Copy the Scripts to the Package Location<br \/>\n3. Create the Package<br \/>\n4. Add the Steps to the Task Sequence<\/p>\n<p><strong>1. Create a failure Picture<\/strong><br \/>\nThis is easily done through paint:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock02.png?w=300\" alt=\"Paint Picture\" width=\"300\" height=\"224\" class=\"aligncenter size-medium wp-image-1645\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock02.png 1282w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock02-300x225.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock02-1024x767.png 1024w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock02-768x575.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nSafe the Picture as jpg with the Name &#8220;OSD_Failed.jpg&#8221; in the designated Package Directory.<\/p>\n<p><strong>2. Copy the Scripts to the Package Location<\/strong><br \/>\nKnow create at the Package Location two files, the first one is named SetFailed_Background.bat which will set the failed LockScreen. The Content of this Batch is:<br \/>\n<code>takeown \/f C:\\Windows\\Web\\Screen<br \/>\ntakeown \/f C:\\Windows\\Web\\Screenimg100.jpg<br \/>\nicacls C:\\Windows\\Web\\Screen \/grant:r *S-1-5-32-544:F<br \/>\nicacls C:\\Windows\\Web\\Screen\\img100.jpg \/grant:r *S-1-5-32-544:F<br \/>\ncopy C:\\Windows\\Web\\Screen\\img100.jpg C:\\Windows\\Web\\Screen\\img100.old \/Y<br \/>\ncopy \"%~dp0OSD_Failed.jpg\" C:\\Windows\\Web\\Screen\\img100.jpg \/Y<\/code><\/p>\n<p>My script is derived from (https:\/\/yorkitacademy.wordpress.com\/2012\/11\/20\/customising-the-default-lock-screen-image-in-windows-8\/). I just added the &#8220;%~dp0&#8221; variable to work in every Situation in SCCM, and also Changed the ACE to a SID, because on other languages, you can&#8217;t use &#8220;Administrator&#8221;.<\/p>\n<p>And here is the second file, to set back the Standard LockScreen, Name the file SetStandard_Background.bat:<br \/>\n<code>takeown \/f C:\\Windows\\Web\\Screen<br \/>\ntakeown \/f C:\\Windows\\Web\\Screen\\img100.jpg<br \/>\nicacls C:\\Windows\\Web\\Screen \/grant:r *S-1-5-32-544:F<br \/>\nicacls C:\\Windows\\Web\\Screen\\img100.jpg \/grant:r *S-1-5-32-544:F<br \/>\ncopy C:\\Windows\\Web\\Screen\\img100.old C:\\Windows\\Web\\Screen\\img100.jpg \/Y<br \/>\n<\/code><\/p>\n<p><strong>Your<\/strong> Package Directory should now Looks like this:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock03.png?w=300\" alt=\"Package Directory\" width=\"300\" height=\"69\" class=\"aligncenter size-medium wp-image-1650\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock03.png 629w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock03-300x70.png 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>3. Create the Package<\/strong><br \/>\nNow just create a Package with source Content of the Folder you created. Then add two programs to the packages, one for each Batch file. Your Package should then Looks like this:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock04.png?w=300\" alt=\"SCCM Package\" width=\"300\" height=\"134\" class=\"aligncenter size-medium wp-image-1651\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock04.png 938w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock04-300x135.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock04-768x346.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>4. Add the Steps to the Task Sequence<\/strong><br \/>\nNow add the steps to the Task sequence, and in the correct order. This means, we will set after the Windows Installation the failure Background as Standard LockScreen. And only if the Task Sequence reaches the end of the TS, the original LockScreen will be restored.<br \/>\nAdd the Steps as marked out in this example TS:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock05.png?w=300\" alt=\"TS Step1\" width=\"300\" height=\"270\" class=\"alignnone size-medium wp-image-1654\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock05.png 708w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock05-300x271.png 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock06.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock06.png?w=300\" alt=\"TS Step 2\" width=\"300\" height=\"270\" class=\"alignnone size-medium wp-image-1655\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock06.png 709w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock06-300x271.png 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>If now the Client has a error with installing an application or something else, when the OS was installed, your Windows 8.1 Machine will present you your LockScreen Picture:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock07.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2014\/11\/osdfailscreenlock07.png?w=300\" alt=\"OSD Failed\" width=\"300\" height=\"224\" class=\"aligncenter size-medium wp-image-1657\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock07.png 1027w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock07-300x225.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock07-1024x767.png 1024w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2014\/11\/osdfailscreenlock07-768x575.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, here&#8217;s Martin again with a blog about how to Display a Special Lock Screen, when the Operating System Deployment Task Sequence Fails. When you are using System Center 2012 Configuration Manager, you might want to have an easy solution to see, if a OSD was successful or not. Normally you see this Picture after [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,35],"tags":[],"class_list":["post-1643","post","type-post","status-publish","format-standard","hentry","category-operating-system-deployment","category-sccm-2012"],"_links":{"self":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts\/1643","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=1643"}],"version-history":[{"count":0,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts\/1643\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}