NS_E_DRM_INVALID_MACHINE (0XC00D2719): DRM license copy blocked
Windows Media Player DRM says you can't copy licenses to this PC. The fix is usually re-activating the license or resetting the DRM store.
What's actually happening
This error shows up when Windows Media Player (or any app using the Windows DRM stack) detects that a media license tied to a specific machine ID doesn't match the current PC. It's not a real hardware mismatch—it's a stale DRM database that thinks you cloned your hard drive or swapped a motherboard.
I've seen this most often when people try to play .wma or .wmv files purchased from old services like MSN Music or Zune Marketplace after reinstalling Windows, or after restoring a drive image to different hardware. The DRM store remembers the old machine ID and refuses to hand over the license.
Fix 1: Quick re-activation (30 seconds)
Before you nuke anything, try the simplest thing—make Windows re-acquire the license from scratch.
- Open the file that throws the error in Windows Media Player.
- When the error dialog pops up, click Web Help or Get License Online (wording varies by version).
- Follow the browser steps to sign in to the original account (Microsoft account, or whatever store sold the file).
- WMP will re-download the license and apply it to this machine.
This works because the DRM store is smart enough to replace a bad machine ID if the license server says it's okay. The error code itself is a client-side check—the server might still authorize you.
If this fails: the license server for that service might be dead (many are). Move to Fix 2.
Fix 2: Reset the DRM store (5 minutes)
What we're doing here is deleting the local DRM database so Windows rebuilds it fresh. You won't lose your media files, but you will lose all previously stored licenses. You'll need to re-download them (see Fix 1) or re-purchase if the store is gone.
- Close any app that might touch DRM—WMP, Edge, Groove Music, etc.
- Press Win + R, type
services.msc, and hit Enter. - Find Windows Media Player Network Sharing Service. Right-click it and select Stop if it's running.
- Open File Explorer and navigate to:
%ProgramData%\Microsoft\PlayReady\
and also
%ProgramData%\Microsoft\Windows\DRM\ - In each folder, delete everything. Don't worry—these are just cache files and license databases.
- Restart your PC. That's it—the DRM store regenerates on first access.
Why this works: The NS_E_DRM_INVALID_MACHINE error lives in the local DRM store. By clearing the store, you remove the stale machine ID. On next boot, WMP creates a new store with the current machine's hardware fingerprint. Any file that triggers the error will then prompt you to re-acquire its license.
Heads up: On Windows 10/11, the PlayReady folder might be missing if no app ever used PlayReady DRM. That's fine—skip it. The DRM folder is the critical one.
Fix 3: Manual DRM reset via command line (15+ minutes)
Sometimes the GUI approach leaves ghost files behind. Let's be surgical.
Step 3a: Stop all DRM-related services
Open Command Prompt as Administrator. Run these:
net stop "Windows Media Player Network Sharing Service"
net stop "WMPNetworkSvc"
net stop "RmSvc"
Step 3b: Delete the DRM store with forced removal
takeown /f "%ProgramData%\Microsoft\Windows\DRM" /r /d y
icacls "%ProgramData%\Microsoft\Windows\DRM" /grant Administrators:F /t
rmdir /s /q "%ProgramData%\Microsoft\Windows\DRM"
What each command does:
takeown— gives your admin account ownership of the folder and all subfiles. Without this, some DRM files are locked by SYSTEM.icacls— grants full control to Administrators. This overrides any ACL that might block deletion.rmdir /s /q— force-deletes the entire DRM directory tree.
Step 3c: Rebuild the DRM store
Reboot your PC. Then open Windows Media Player once. It will create a fresh DRM folder. If you have any licenses left to re-acquire, do so now via the Get License Online flow in Fix 1.
When nothing works
If the store that issued the license is gone (RIP MSN Music, Zune Marketplace), those .wma files are effectively bricked. There's no workaround—you cannot inject a fake machine ID because the DRM checksum is signed by the server. Your only option is to rip the audio using a tool like SoundTaxi or NoteBurner while playing the file (that's legal if you own the license).
For everything else—Netflix downloads, protected streaming content—the PlayReady reset in Fix 2 usually handles it.
Was this solution helpful?