You're trying to play a protected media file — maybe a rental movie from a store or a subscription track in Windows Media Player — and instead of playback you get error NS_E_DRM_INVALID_LICENSE_ACQUIRED (0XC00D271F). I know this one's infuriating because you just paid for the content. Most often it happens when your internet connection drops mid-license download, or your system clock is out of sync with the licensing server. I've also seen it when a VPN or proxy corrupts the handshake.
What causes this error
The short version: the DRM (digital rights management) license file your system downloaded has a checksum or signature mismatch. Windows thinks the license itself is invalid, so it won't let the media play. The root cause is almost always a botched download — not a problem with your account or the content itself.
Fix: reset your DRM license store
Skip all the fancy 'repair tools' out there. The real fix is to delete the local DRM folder and let Windows reacquire the license fresh. Here's how.
- Close any app using DRM — that includes Windows Media Player, any store apps playing video, and even background services like Groove Music or Movies & TV. Check Task Manager if you're unsure.
- Stop the Windows Media Player Network Sharing Service — open Command Prompt as admin and run:
If it's already stopped, great.net stop WMPNetworkSvc - Delete the DRM folder — navigate to:
On most systems that's%PROGRAMDATA%\Microsoft\Windows\DRMC:\ProgramData\Microsoft\Windows\DRM. You'll see subfolders likecacheandindiv. Delete all the files inside this folder. Don't delete the folder itself, just its contents. - Clear the per-user license cache — open this in File Explorer:
Delete the%LOCALAPPDATA%\Microsoft\Media Player\SyncBackupandWMPCachefolders if they exist. These can hold stale license data. - Restart the sharing service — in that same admin CMD, run:
net start WMPNetworkSvc - Sync your clock — set your PC time automatically:
Then Sync now. A clock off by more than a few minutes kills DRM.Settings > Time & Language > Date & time > Set time automatically (on) - Reopen the media — try playing the file again. Windows will contact the licensing server and download a fresh license. Make sure your internet is stable and no proxy or VPN is interfering.
What to check if it still fails
If the error persists after the reset, look at these three things:
- Windows Media Player version — on Windows 10/11, use the built-in Media Player Legacy (not the new app). The newer 'Media Player' app from the Store often has DRM issues. Open
wmplayer.exedirectly from Start. - Firewall/AV — some security software blocks the license acquisition port (TCP 443 for HTTPS, but DRM uses non-standard ports too). Temporarily disable your firewall and try again. If it works, add an exception for
wmplayer.exeandsvchost.exe. - Account reauthorization — if the file came from a store like Amazon Video or iTunes, sign out of the app, restart your PC, then sign back in. This often triggers a fresh license check.
One more thing: if you're on a corporate network with a proxy, DRM almost always fails. The admin needs to allow *.microsoft.com and *.licenses.drm.com through the proxy. There's no workaround on your end.
Bottom line: delete the DRM cache, sync your clock, and try again with a stable connection. Nine times out of ten that's all you need.