A bug with sysprep in win7 RTM with workaround
Posted 21 September 2009 - 01:03 PM
I don't usually have problems running sysprep, but the first time I ran it on a Windows 7 RTM ( Just after installing windows, even hadnt configured anything on windows ) I received an error that Sysprep could not continue and was halted. I opened the error log file and saw this
2009-09-22 13:37:55, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'drmv2clt.dll,Sysprep', returned error code -2147024864[gle=0x00000020]
2009-09-22 13:37:55, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = -2147024864[gle=0x00000020]
2009-09-22 13:37:55, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
I searched the MS KB, and sadly, could find nothing. Then I Googled some of the above and found a couple of references to this. They mentioned that drmv2clt.dll is associated with Digital Rights Management and this error in Sysprep could be fixed by disabling Media Sharing in Windows Media Player. That seemed odd. This Windows 7 PC was setup just to test Sysprep and imaging. I didn't even start or configure Windows Media Player. This bug was exist in Windows 7 Beta and RC version as well! but they still havent fixed it in RTM version yet .
Reason : Windows Media Player Network Sharing Service.
Click Start > Run, type Services.msc to open the Services applet.
Scroll down to Windows Media Player Network Sharing Service, double click it, change the Startup type to Disabled. Click OK.
Once I did this, I re-ran Sysprep (sysprep /generalize /oobe /shutdown /unattend:answer.xml) and it ran without error.
Seems like a sysprep bug to me.
Posted 21 September 2009 - 10:21 PM
This is the main reason why my images are now all built in VMs with snapshot capabilities, so I can simply go back and try again when/if it fails (and it's rare, but yes, I've seen this one once or twice before and ultimately figured out the error).
Posted 23 September 2009 - 05:43 AM
I tried to redo the image, but same problem again! can u explain me what exactly I need to do?
Posted 25 September 2009 - 07:17 AM
It's worth noting I've only ever had this happen twice in my time preping Win7, and both times it was caused by installing onto a hard drive that eventually did die (hence why I moved to using a VM instead, where the issue has yet to occur).
Posted 01 October 2009 - 12:06 PM
I installed windows many times and then tried to generalize it before capture but same error .
it gives error at "starting services" phase, which service causing this error? any idea?
Posted 03 October 2009 - 03:41 PM
I'm not doing /generalize but C:\Windows\SysWOW64\sysprep is an empty folder
mine fails running from a cmd file but if I paste in an Admin cmd prompt it does as expected
%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot /unattend:H:\OOBEAudit.xml
still working on elevating my cmd file prompt.
This post has been edited by maxXPsoft: 03 October 2009 - 03:42 PM
Posted 30 October 2009 - 01:29 PM
The Panther logs are showing two sets of infos:
an hr=0x80070020 (ERROR_SHARING_VIOLATION)
So I am not doing anything with images or generalizing. All that is done is install the OS, then install the Windows 7 drivers (for Intel DG45ID) and no additional software.
However, I went into services and STOPPED the Windows Media Player Network Sharing Service, and then set its start-up state to Manual. It was able to sysprep the computer without an error.
- ← Just can't get dism working.
- Unattended Windows 7/Server 2008R2
- Can I have a copy of your working Win7 x64 AutoUnattend.xml →