Web
Analytics Made Easy - StatCounter

Windows 7: fatal error trying to sysprep the machine

sysprepfatalerror01

During Windows 7 sysprep, the procedure stops with the message “A fatal error occurred while trying to sysprep the machine“.

Problem occurs using an answer file or running the sysprep’s GUI.

From the elevated Command Prompt, run the sysprep command.

sysprepfatalerror02

The process stops with an error message.

sysprepfatalerror03

sysprepfatalerror04

To troubleshoot the problem, the sysprep log is a good starting point. During sysprep, a log named sylogerr.log is created in folder C:\Windows\System32\sysprep\Panther.

sysprepfatalerror05

Analyzing the log, it reports the following:

Error [0x0f0085] SYSPRP LaunchDll:Could not load DLL c:\Program Files\Microsoft Security Client\MSESysprep.dll[gle=0x0000007e]

sysprepfatalerror06

Looking for the DLL in folder C:\Program Files\Microsoft Security Client\MSESysprep.dll as reported in the log, the directory doesn’t exist under C:\Program Files\.

The missing DLL belongs to Microsoft Security Essential package that haven’t been uninstalled properly.

 

Fix 1

Because the missing DLL is due to Microsoft Security Essential, you can reinstall the program then, if you don’t want it as part of master image, uninstall it afterwards checking that all parts of the package are properly removed.

sysprepfatalerror07

 

Fix 2

Easiest way to fix this matter is removing the orphan key left in the registry by Microsoft Security Essential package.

Open the Registry Editor. The string to be removed from the registry is located in:

HKLM\software\Microsoft\Windows\CurrentVersion\Setup\Cleanup

sysprepfatalerror08

Identify the string:

2D153B43-11B4… C:\program files\Microsoft Security Client\MSESysprep.dll,DllSysprep_Cleanup

Because this is a protected string, you need to change the permission of the key to deleted it. From the Registry Editor select the key then go to menu Edit > Permissions.

sysprepfatalerror09

Give the group Users Full Control permissions to the key then click OK.

sysprepfatalerror10

Right click the registry key then select Delete option.

sysprepfatalerror11

A warning message is shown. Click Yes to confirm key deletion.

sysprepfatalerror12

The key is no longer listed.

sysprepfatalerror13

Launching the sysprep once again, the process runs smoothly.

sysprepfatalerror14

Solution tested several times, it’s quick, easy and it works perfectly without having to install MSE again.

firma

2 Comments

  1. Yorgus 22/08/2015