ConfigMgr Bug – Stuck At “Preparing computer for first use…”
From the archive (2010). Written for the tools of the time, so some details may be out of date.
This was on the MDT/OSD list and I thought I’d post it. There is a known issue if with 64-bit systems where the TS stalls at State Restore when it hits the Use Toolkit package step.
Per Tim Mintner, here is the fix:
Create a “Run command line” step (positioned before the “Use Toolkit Package” step in the new OS) run this command:
reg add HKCR\Wow6432Node\TypeLib{D5E1749D-832D-4587-AFC3-9462187FE2F5}\1.0\0\win64 /ve /d “%WINDIR%\SysWOW64\CCM\tscore.dll” /f
This will fix the one registry key that we have identified as being incorrect, which causes the MDT scripts (and any other VBScripts that try to use Microsoft.SMS.TSEnvironment) to fail