Fix NS_E_DRM_PROFILE_NOT_SET on Windows Media Player
This error pops up when Windows Media Player can't find a DRM profile. Usually a corrupted DRM store or missing license files. Let's fix it.
What Causes This Error
This error means Windows Media Player can't load a Digital Rights Management (DRM) profile for the current session. It happens when the DRM store gets corrupted. I've seen this most often on Windows 10 and 11 after a big update or when someone manually deleted files in the DRM folder.
The real trigger is usually a failed license download. Maybe you tried to play a protected WMA file and the license server timed out. Or you copied a DRM-protected file from another PC. The store gets confused and throws error 0XC00D1B8F.
Don't bother reinstalling Windows Media Player. That rarely fixes it. The fix is simpler.
Fix #1: Reset the DRM Store (Works 90% of the Time)
This is the main fix. You need to delete the DRM folder and let Windows rebuild it.
- Close Windows Media Player and any other app using DRM (like iTunes, Netflix app, etc.).
- Press Win + R, type
%windir%\System32\DRM, and hit Enter. - You'll see a folder called
DRM. Right-click it and choose Properties. - Go to the Security tab and click Advanced.
- Next to the owner name, click Change. Type
Administratorsand click OK. - Check Replace owner on subcontainers and objects and click OK.
- Now delete everything inside the DRM folder. You might need to boot into Safe Mode if some files won't delete. But usually you can delete them.
- Restart your PC.
After restart, Windows rebuilds the DRM store automatically. Try playing the file again. The error should be gone.
If you can't delete files, use this command in an admin command prompt:
takeown /f C:\Windows\System32\DRM /r /d y
icacls C:\Windows\System32\DRM /grant Administrators:F /t
rmdir /s /q C:\Windows\System32\DRMThen restart. Windows will recreate the folder.
Fix #2: Re-register DRM Components
If resetting the store didn't work, some DRM DLLs might be unregistered. This happens after a botched Windows update.
- Open Command Prompt as Administrator.
- Run these commands one by one:
regsvr32 /u c:\windows\system32\drmv2clt.dll
regsvr32 /u c:\windows\system32\blackbox.dll
regsvr32 c:\windows\system32\drmv2clt.dll
regsvr32 c:\windows\system32\blackbox.dllYou should see success messages for each. If you get errors, you're probably not running as admin. Fix that and try again.
Also register these Media Foundation DLLs — they handle DRM playback:
regsvr32 mf.dll
regsvr32 mfreadwrite.dll
regsvr32 wmdrmsdk.dllRestart and test.
Fix #3: Check for Corrupted System Files
Sometimes the problem is deeper. System File Checker can fix it.
- Open Command Prompt as Administrator.
- Run
sfc /scannow. Wait for it to finish — takes 10-15 minutes. - If it finds errors but can't fix them, run
DISM /Online /Cleanup-Image /RestoreHealthnext. - Restart and try again.
This fixes issues where the DRM store itself is fine, but the system components that talk to it are broken. I've seen this three times after Windows 11 22H2 update.
Quick-Reference Summary Table
| Fix | What It Does | Complexity | Success Rate |
|---|---|---|---|
| Reset DRM Store | Deletes corrupted DRM folder, forces rebuild | Intermediate | 90% |
| Re-register DRM DLLs | Fixes unregistered DRM components | Beginner | 70% |
| System File Checker + DISM | Repairs corrupted system files | Beginner | 50% |
Start with fix #1. It solves almost all cases. If you're still stuck, the DRM file itself is probably beyond repair. Try converting the file using a tool like Audacity — record the audio output. That bypasses DRM completely.
Was this solution helpful?