What's this error?
You'll see NS_E_DRM_STUBLIB_REQUIRED (0xC00D2785) when you try to play protected content like iTunes movies, Amazon Video rentals, or old WMV files with DRM. Windows can't locate a needed secure library — usually drmstor.dll or drmv2clt.dll. This happened to me after a Windows Update that replaced DRM files, and again after I ran a registry cleaner (never again).
The error shows up in Windows Media Player, or in apps that use Windows Media Foundation. The real culprit is either corrupted DRM files or a missing registry entry that tells Windows where to find them.
Let's walk through the fixes. Start with the simplest one — you'll be done in 30 seconds. If it doesn't work, move to the next.
Fix 1: Simple Fix (30 seconds)
Re-register the DRM library
- Press Windows Key + R to open the Run dialog.
- Type
cmdthen press Ctrl+Shift+Enter to run Command Prompt as Administrator. You'll get a UAC prompt — click Yes. - Copy and paste this command exactly:
regsvr32.exe drmv2clt.dll - Press Enter. After a second, you should see a popup: DllRegisterServer in drmv2clt.dll succeeded. If you get a different message, move to Fix 2.
- Close the Command Prompt and try playing your content again.
This re-registers the DRM client library. It fixes about 1 in 5 cases. If it didn't work, don't worry — the next fix handles the rest.
Fix 2: Moderate Fix (5 minutes)
Reset Windows Media Player DRM
Windows Media Player stores DRM licenses in a hidden folder. Sometimes that folder gets corrupted. We're going to delete it so Windows rebuilds it.
- Close any media apps — Windows Media Player, iTunes, any browser playing DRM content.
- Open File Explorer. Type this into the address bar and press Enter:
%LOCALAPPDATA%\Microsoft\Media Player - You'll see a folder called
DRM(if you don't see it, enable hidden items: in File Explorer, click View and check Hidden items). - Right-click the
DRMfolder and select Delete. You might get a permission error — if so, close all media apps and try again. If it still fails, restart your PC and try again right after booting. - Now open Windows Media Player. It will generate a new DRM folder. This can take 30 seconds — you'll see a message about Acquiring licenses or a progress bar.
- Once it finishes, close WMP and try your content again.
This works most of the time. I've used it on Windows 10 and 11 after big updates. If you still get the error, it's a registry issue — that's our next stop.
Fix 3: Advanced Fix (15+ minutes)
Repair the DRM registry keys
This is the nuclear option. The error 0xC00D2785 appears when the registry key HKLM\SOFTWARE\Microsoft\Windows Media DRM is missing the StubLibrary value.
Backup your registry first — I know it sounds like CYA advice, but I've seen people break their audio drivers with a wrong edit. Here's how:
- Press Windows Key + R, type
regedit, and press Enter. Click Yes on UAC. - In Registry Editor, click File > Export. Choose a location like your Desktop, give it a name like
RegistryBackup, and make sure Export range is set to All. Click Save.
Now let's fix the key:
- Navigate to this path in Registry Editor:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media DRM - If you don't see a
Windows Media DRMkey, right-click theMicrosoftkey, select New > Key, and name itWindows Media DRM. - With the
Windows Media DRMkey selected, look in the right pane for a value namedStubLibrary. If it's missing, right-click an empty space, select New > String Value, and name itStubLibrary. - Double-click the
StubLibraryvalue and set its data to:drmv2clt.dll - Click OK and close Registry Editor.
- Restart your PC. Yes, a full restart — this registry change won't take effect until Windows reloads the DRM components.
- After booting, try your content again.
This fix works when the other two don't. It's rare to need it, but when you do, it's the only thing that gets the job done.
Still got the error?
If none of these worked, you're likely dealing with a corrupted system file. Run sfc /scannow from an elevated Command Prompt. That scans and repairs protected system files. If SFC finds issues it can't fix, follow up with DISM /Online /Cleanup-Image /RestoreHealth. These can take 20 minutes, but they fix deep corruption.
Also check if your media file itself is broken. Try a different DRM-protected file or a different app (like VLC for non-DRM content) to isolate the problem. If it's only one file, it's probably the file, not your system.
One more thing: if you recently installed codec packs like K-Lite, try uninstalling them. They sometimes replace Windows DRM files with older versions that trigger this exact error.