ConfigMgr : Windows 7 x64 OSDComputerName Ignored

We’ve been tetsing a 64-bit build of Windows 7 SP1, that includes IE 10. SCCM 2012 R2 CU1 performs both the Build and Capture Task Sequence alongside all Deployments of the ‘golden image’ to client devices.

The symptoms of this issue were simple, all “Deploy” Task Sequences were failing – on closer inspection it was clear that the machine had not joined the domain, and it had not used the hostname as defined in the OSDComputerName Task Sequence Variable – in fact the machine was using the name of the machine that we used to perform the golden image creation under the Build/Capture Task Sequence!

Having reviewed the sysprep logs on the client there was an error; SYSPRP LaunchDll:Could not load DLL C:\Windows\SysWOW64\iesysprep.dll[gle=0x000000c1]

This was surprising as the Build and Capture Task Sequence was completing successfully, every time.

So sysprep was failing, and therefore the machine was not in an “Out of Box” state when the WIM was deployed to new devices – as such the unattend.xml file was ignored and thus hostname, domain membership etc never happened.

I came across others who had had this issue – and a solution – in the following TechNet thread: https://social.technet.microsoft.com/Forums/windows/en-US/1ca35612-bb75-4e71-be43-83934ef23291/after-installing-ie10-sysprep-fail-with-error-sysprp-launchdllcould-not-load-dll

As per the above thread, to resolve this issue create the following files in a new package:

_Install.cmd

regini -m \\%computername% iesysprep.dll.txt

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Cleanup /v {EC9FE15D-99DD-4FB9-90D5-5B56E42A0F80} /t REG_SZ /d "C:\Windows\System32\iesysprep.dll,Sysprep_Cleanup_IE" /f

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Generalize /v {EC9FE15D-99DD-4FB9-90D5-CE53C91AB9A1} /t REG_SZ /d "C:\Windows\System32\iesysprep.dll,Sysprep_Cleanup_IE" /f

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Specialize /v {EC9FE15D-99DD-4FB9-90D5-676C338DC1DA} /t REG_SZ /d "C:\Windows\System32\iesysprep.dll,Sysprep_Cleanup_IE" /f

iesysprep.dll.txt

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Cleanup [1]

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Generalize [1]

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Specialize [1]

Now add a new step to your 64-bit build/capture Task Sequence – add this just prior to the Capture Stage of the Task Sequence:

  • New step type: Run Command Line
  • Command: _Install.cmd
  • Package: <new package that includes the files created as above>