Sysprep - "Failure occurred while executing drmv2clt.dll" - Fix
I don't usually have problems running sysprep, but the first time I ran it on a Windows 7 (BETA Ultimate 32bit) PC I received an error that Sysprep could not continue and was halted. I went to c:\windows\system32\sysprep\panther and opened the setuperr.log file. (Actually, Windows won't letyouopen this file (!)socopy it out of this directory, then open it.) There was not much in the file, just a few lines referencing drmv2clt.dll.

2009-04-20 13:37:55, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'drmv2clt.dll,Sysprep', returned error code -2147024864[gle=0x00000020]
2009-04-20 13:37:55, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = -2147024864[gle=0x00000020]
2009-04-20 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. We didn't even start or configure Windows Media Player. I also had no idea how to disableMediaSharing in Media Player?? This time I went to Windows Help and searched it, but sadly, it too had no information. Ionce again Googled this and found out how to disable Media Sharing in Media Player.It is a service that is configured to automatically start at boot up.

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 typeto Disabled. Click OK.
Reboot the PC

Once I did this, I re-ran Sysprep (sysprep /generalize /oobe /shutdown /unattend:sysprepdomainWin7.xml) and it ran without error.

Seems like a sysprep bug.I don't think this is a Win7 thing since the fix for this I readwas from a BDD 2007 document. Oh, and if you want to know how to fix problems in Windows, use Google.
April 21st, 2009 1:47pm

We have noted the exact same problem and used the same work around as you describe. I have spoken to MS who inform me this is a known bug and will be fixed in the RC.
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2009 4:50pm

Just installed the windows 7RC build 7100 and tried to run Sysprep.The same failure occured and .... has not been fixed in the RC.

But the "Windows Media Player Network Sharing Service" solutionworked just fine.


A note: The build 7000 did not have this error.
May 4th, 2009 11:11am

Issue has been alreadyfixed in Windows7 RTM and for Windows 7 RC you have to use the workaround

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2009 3:45pm


Thanks. Grrr one of those things you can never figure out hidden away, in the dark.

It worked for me. Command that might be useful in MDT etc.

sc stop WMPNetworkSvc
June 9th, 2009 4:05am

Issue has been alreadyfixed in Windows7 RTM and for Windows 7 RC you have to use the workaround
Free Windows Admin Tool Kit Click here and download it now
August 22nd, 2009 3:59am

...and of course the workaround fixed the problem on the RTM version, so thanks for the info, Ukon. I'm wondering why this is still broken. Lots of people use Sysprep and the Windows Media Player Network Sharing Service is enabled by default.
August 27th, 2009 2:21am

Identical error message, but this workaround didn't work for me...until...also in Services, I disabled Media Center Receiver Service and presto,
bad, bad error be gone!
Found it here, Michael's post- http://social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/75c5c2bc-65c7-4a3c-ab08-2bbd56c80708?prof=required

Daniel C.

Free Windows Admin Tool Kit Click here and download it now
September 10th, 2009 7:57am

Just ran into same issue on 64 Bit Windows 7 Professional installed via HP provided CD.  The good news is that disabling the Windows Media Player Network Sharing Service worked!
January 13th, 2010 1:16am

Disabling the Windows Media Player Network Sharing Service in 32 bit Windows 7 worked for me too.   Come on Microsoft, get stuff like this fixed.   Tired of donating my time to problems like this.
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2010 1:45am

Hi there,

@ankito : What makes you so sure the issue "has been already fixed in Windows 7 RTM" (May 07, 2009 : more than a year ago !) ???

I'm trully curious, since it obviously has NOT been fixed : i just ran into the exact same error, sysprepping an OEM x64 Windows 7 Pro.

 

Whatever ; once the Windows Media Player Network Sharing service is stopped, sysprep is not angry anymore and agrees to do its stuff. Clarksville wrote "Tired of donating my time to problems like this." : i second this.

June 25th, 2010 9:11am

You sure saved me a lot of work. We are Q4 2010 now and the problem hasn't been fixed. Yes, I ran all the updates... Good job UkonCornelias!
Free Windows Admin Tool Kit Click here and download it now
October 30th, 2010 7:11pm

One other thing you might want to consider when trying to troubleshoot this issue is whether you have the Zune software installed on this computer or even have connected a Zune to the said computer.  Even though it is not part of the “Windows Media Player/Center” it does still utilize the drmv2clt.dll.  I had that same issue as I don’t use WMP but I do use the Zune software and that escaped my mind as being an issue until I had a brain fart moment, disabled the Zune Media Sharing service and then it worked.  Sorry if this was covered already.

January 10th, 2011 9:50pm

FYI

3.17.11

win 7 ho pre x64 SP1

same problem persists.

same fix fixed.

 

Free Windows Admin Tool Kit Click here and download it now
March 17th, 2011 3:41pm

I had same problem, than I stopped some windows services and Sysprep is running now ok, but I don't known what windows service is the bad guy... the last service that I stopped was "Windows Media Player Network Sharing", but can be other...
April 4th, 2011 7:26pm

Same here on Windows 7 Professional x64 with SP 1. Funny, we didn't have it in some installations, but now all of a sudden it pops up. I wonder if it has anything to do with volume media vs. retail media.
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2011 9:20pm

Hello Hello Microsoft:

The problem is still here even with SP1.  I am tired of stopping the winmedianetwork serviec and making this sysprep to work.  Please fix it.

May 16th, 2011 5:57pm

Just having the same issues on Win 7 x64 SP1. Simple install using an autounattend.xml answer file, then when trying to generalise, sysprep fails.

Just in the process of restoring the reference image again, and will try shutting down the WMP Network serving service to see what happens!

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2011 2:24pm

Just having the same issues on Win 7 x64 SP1. Simple install using an autounattend.xml answer file, then when trying to generalise, sysprep fails.

Just in the process of restoring the reference image again, and will try shutting down the WMP Network serving service to see what happens!


l simply stopped the service and sysprep worked. Of course, doing it this way and not disabling the service will mean that the servie will start if you reboot whilst in audit mode.

I'm guessing it would be relatively simple to add something to the sysprep command to switch off this service if it is running.

September 3rd, 2011 4:32pm

I concure that the problem is still exist.   My configuration is with windows 7 Pro 32bits w/SP 1.

Free Windows Admin Tool Kit Click here and download it now
October 18th, 2011 3:30pm

This issue still exists in 2012, unreal!!  Setting up a template to clone for VM labs.  Conducted a fresh install of Windows 7 Ultimate w/ SP1 all patched up and sysprep was failing.  I tried every other potential fix I could find without success and then I found this thread.  

Amazing that disabling the WMP network sharing service worked like a charm.  Rather annoying but just glad I've got it fixed.  Thanks!

March 21st, 2012 2:50pm

Yes, for a company that has a long and challenged history of omnipotence I have come to expect these information black holes as a technician. I have been working with MS and also with Windows since DOS 2.2 and I recall the DOS 4.0 debacle. It was the beginning of the use of "Hi-memory" area. They had created the ability to use hi-memory (introduced by Compaq) but they didn't bother to reserve or map what was in memory. So when DOS went to retrieve information loaded in memory it either was overwritten, or could not be located. Thus, all machines locked! I worked with a couple engineers from UC Irvine who identified and resolved the problem Windows. I recall working at WB and I introduced Windows ADS, well ultimately we had to migrate from one machine to another. There was an information store containing the data of active directories configuration and security called the "DIT" in restoring ADS I ran into a wall. There was no documentation on how to move the DIT, the core of ADS's information. Well I finally got to a high level technician that could work with me to relocate and document the procedure. If you are familiar with UNIX then you understand that the user community documents and tests new code. Just inherent part of computing. So I am not surprised that they have left us to resolve this issue ourselves.

Of course they are now pushing AZURE and online storage which could be why they aren't assisting us with this issue.

Free Windows Admin Tool Kit Click here and download it now
April 4th, 2012 4:07pm

I canceled the Windows Media Player Network Sharing Service and everything works great I can not believe how long I break my head with it thank you very much
October 2nd, 2012 8:26am

Cannot believe that this still hasn't been fixed.
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2013 5:08pm

This problem first appeared in Vista and also still exists in Windows 7, as you have noticed. You get this error if you choose a Network Location prior to using Sysprep. Any time building an image, if you get the Choose Network Location window, click cancel and you won't have this error.

I believe, "technically" that it only happens if you choose Home or Work, but not Public. To be safe, I never choose a location at all, and then if I need to specify a location, I will handle it with the answer file.

May 9th, 2013 2:23pm

Thank you very much!

This solved my problem in a matter of minutes.
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2013 11:46pm

Amazing... After four years of this question being posted, the problem still exists. I just ran into it today, and disabling the aforementioned service fixes the issue.
November 1st, 2013 8:28pm

Issue still occurs. Just received a new Dell Inspiron 3847 with Win7 SP1 x64 and received the error when attempting to sysprep and create an image. Disabling the WMPNetworkSvc resolved the issue. This error did not occur on both an HP Compaq Pro 6300 AiO a Dell Optiplex 780 both running Win7 SP1. Both the Dells also have the issue where after the system reboots from syspreping in loops the error stating "Windows could not finish configuring the system. To attempt resume configuration, restart the computer" I was able to bypass this error by booting the machines into Safe Mode then restarting. You get an error when you boot into Safe Mode however once you reboot back into Normal mode the sysprep completes.

I haven't yet figured out what causes this as the setup.etl file keeps getting corrupt to I am unable to run a trace log to see what is preventing sysprep from continuing. I believe it has something to do with ESET but ESET is on all 3 PCs yet the issue only happens on the Dell models. 

Free Windows Admin Tool Kit Click here and download it now
February 11th, 2014 11:13pm

Yep, after all those years, the fix still works! I have ran into this particular issue while preparing a template for a pooled VDI collection.
March 5th, 2014 8:05pm

Thank you so much for posting this -- you saved me a LOT of time on research!

Cheers

Chris

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2014 3:41pm

5 years later, and this is still the thing that ended the ridiculous amount of frustration and time spent trying to get sysprep to work.  For that sir, I thank you... thank you... THANK YOU!
June 4th, 2014 4:48pm

Still the same solution for the same problem in November 2014.

Great Job. MS :\

Free Windows Admin Tool Kit Click here and download it now
November 25th, 2014 3:13pm

Problem still exists in Win7-64 SP1, all updates. Sysprep failed, disabled service and it worked.

Thank you for the solution!

December 12th, 2014 4:34pm

Just wanted to provide yet another update in 2015.. 6 years later, the bug is STILL not fixed, and the original 2009 fix from UkonCornelias still works!  Thanks!
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2015 1:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics