{"id":8500,"date":"2014-01-27T07:01:00","date_gmt":"2014-01-27T05:01:00","guid":{"rendered":"http:\/\/nolabnoparty.com\/?p=8500"},"modified":"2014-09-19T09:32:42","modified_gmt":"2014-09-19T07:32:42","slug":"windows-7-fatal-error-trying-sysprep-machine","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/windows-7-fatal-error-trying-sysprep-machine\/","title":{"rendered":"Windows 7: fatal error trying to sysprep the machine"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 10px auto 5px; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border: 0px;\" title=\"sysprepfatalerror01\" alt=\"sysprepfatalerror01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror01.jpg\" width=\"602\" height=\"202\" border=\"0\" \/><\/p>\n<p>During Windows 7 sysprep, the procedure stops with the message \u201c<strong>A fatal error occurred while trying to sysprep the machine<\/strong>\u201c.<\/p>\n<p>Problem occurs using an answer file or running the sysprep\u2019s GUI.<\/p>\n<p><!--more--><\/p>\n<p>From the elevated Command Prompt, <strong>run the sysprep<\/strong> command.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror02\" alt=\"sysprepfatalerror02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror02.jpg\" width=\"600\" height=\"303\" border=\"0\" \/><\/p>\n<p>The process stops with an error message.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror03\" alt=\"sysprepfatalerror03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror03.jpg\" width=\"384\" height=\"171\" border=\"0\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror04\" alt=\"sysprepfatalerror04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror04.jpg\" width=\"426\" height=\"171\" border=\"0\" \/><\/p>\n<p>To troubleshoot the problem, the <strong>sysprep log<\/strong> is a good starting point. During sysprep, a log named <strong>sylogerr.log<\/strong> is created in folder <strong>C:\\Windows\\System32\\sysprep\\Panther<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror05\" alt=\"sysprepfatalerror05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror05.jpg\" width=\"554\" height=\"252\" border=\"0\" \/><\/p>\n<p>Analyzing the log, it reports the following:<\/p>\n<blockquote><p>Error [0x0f0085] SYSPRP LaunchDll:Could not load DLL c:\\Program Files\\Microsoft Security Client\\MSESysprep.dll[gle=0x0000007e]<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror06\" alt=\"sysprepfatalerror06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror06.jpg\" width=\"581\" height=\"202\" border=\"0\" \/><\/p>\n<p>Looking for the DLL in folder <em>C:\\Program Files\\Microsoft Security Client\\MSESysprep.dll<\/em> as reported in the log, the <strong>directory doesn\u2019t exist<\/strong> under <em>C:\\Program Files\\<\/em>.<\/p>\n<p>The missing <strong>DLL belongs to Microsoft Security Essential<\/strong> package that haven\u2019t been uninstalled properly.<\/p>\n<p>&nbsp;<\/p>\n<h2>Fix 1<\/h2>\n<p>Because the missing DLL is due to <a href=\"http:\/\/windows.microsoft.com\/en-us\/windows\/security-essentials-download\" target=\"_blank\" rel=\"noopener\">Microsoft Security Essential<\/a>, you can <strong>reinstall the program<\/strong> then, if you don\u2019t want it as part of master image, uninstall it afterwards checking that all parts of the package are properly removed.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border: 0px;\" title=\"sysprepfatalerror07\" alt=\"sysprepfatalerror07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror07.jpg\" width=\"600\" height=\"377\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Fix 2<\/h2>\n<p>Easiest way to fix this matter is <strong>removing the orphan key left in the registry<\/strong> by Microsoft Security Essential package.<\/p>\n<p>Open the <strong>Registry Editor<\/strong>. The string to be removed from the registry is located in:<\/p>\n<blockquote><p>HKLM\\software\\Microsoft\\Windows\\CurrentVersion\\Setup\\Cleanup<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror08\" alt=\"sysprepfatalerror08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror08.jpg\" width=\"600\" height=\"395\" border=\"0\" \/><\/p>\n<p>Identify the string:<\/p>\n<blockquote><p>2D153B43-11B4\u2026 C:\\program files\\Microsoft Security Client\\MSESysprep.dll,DllSysprep_Cleanup<\/p><\/blockquote>\n<p>Because this is a <strong>protected string<\/strong>, you need to change the permission of the key to deleted it. From the Registry Editor select the key then go to menu <strong>Edit &gt; Permissions<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror09\" alt=\"sysprepfatalerror09\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror09.jpg\" width=\"600\" height=\"447\" border=\"0\" \/><\/p>\n<p>Give the group\u00a0<strong>Users Full Control<\/strong> permissions to the key then click <strong>OK<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror10\" alt=\"sysprepfatalerror10\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror10.jpg\" width=\"377\" height=\"456\" border=\"0\" \/><\/p>\n<p>Right click the registry key then select <strong>Delete<\/strong> option.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror11\" alt=\"sysprepfatalerror11\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror11.jpg\" width=\"600\" height=\"154\" border=\"0\" \/><\/p>\n<p>A warning message is shown. Click <strong>Yes<\/strong> to confirm key deletion.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror12\" alt=\"sysprepfatalerror12\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror12.jpg\" width=\"572\" height=\"139\" border=\"0\" \/><\/p>\n<p>The key is no longer listed.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror13\" alt=\"sysprepfatalerror13\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror13.jpg\" width=\"600\" height=\"395\" border=\"0\" \/><\/p>\n<p>Launching the sysprep once again, the process runs smoothly.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"sysprepfatalerror14\" alt=\"sysprepfatalerror14\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/01\/sysprepfatalerror14.jpg\" width=\"600\" height=\"303\" border=\"0\" \/><\/p>\n<p>Solution tested several times, it\u2019s quick, easy and it works perfectly without having to install MSE again.<\/p>\n<p><img decoding=\"async\" alt=\"firma\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During Windows 7 sysprep, the procedure stops with the message \u201cA fatal error occurred while trying to sysprep the machine\u201c. Problem occurs using an answer file or running the sysprep\u2019s GUI.<\/p>\n","protected":false},"author":3,"featured_media":8486,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"linkedin_93tdZWzMZc_93tdZWzMZc":"","facebook_2879994398731222_17841400390232720":"","twitter_113568041_113568041":"","mastodon_115463926174894442_115463926174894442":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[1065,918],"tags":[766,767,636],"class_list":["post-8500","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-en","category-windows7-en","tag-fatal-error-en","tag-sysprep-en","tag-windows-7-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/8500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=8500"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/8500\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/8486"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=8500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=8500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=8500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}