0XC00D2AFF

Fix NS_E_SETUP_DRM_MIGRATION_FAILED (0XC00D2AFF) in Windows

Windows Errors Intermediate 👁 0 views 📅 May 28, 2026

This error pops up during Windows setup when DRM migration fails. Usually a corrupted DRM store or file permissions. Fix it with these steps.

30-Second Fix: Kill DRM Processes and Retry

I know this error is infuriating—especially when you're mid-setup and it stalls. Before you do anything complicated, let's try the simplest thing: stop the DRM migration process and let Windows try again.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Look for any process named setup.exe or migrate.exe related to DRM. Right-click and End Task.
  3. Wait 10 seconds, then restart the setup from where you left off.

This works about 20% of the time. If not, move on—the real fix takes five minutes.

5-Minute Fix: Reset the DRM Store

Most of the time, this error happens because the DRM store is corrupted. I've seen it after failed Windows updates or when you move media files between drives. Here's how to clear it:

  1. Close all media players (Windows Media Player, etc.).
  2. Press Win + R, type %appdata%\Microsoft\DRM, and hit Enter.
  3. Delete everything in this folder. Don't worry—Windows rebuilds it automatically.
  4. Press Win + R again, type services.msc, and find Windows Media Player Network Sharing Service. Right-click it, choose Restart.
  5. Now run the setup again. The DRM components should migrate cleanly.

If you still see the error, don't skip the next section—it's for the stubborn cases.

15+ Minute Fix: Clean DRM Components via Command Line

This one's for when the DRM store reset isn't enough. Sometimes file permissions get locked, or Windows Media Format runtime is borked. Let's nuke it from elevated command prompt.

  1. Right-click Start, choose Windows Terminal (Admin) or Command Prompt (Admin).
  2. Run these commands in order:
net stop "Windows Media Player Network Sharing Service"
net stop "WMPNetworkSvc"

takeown /f "%programdata%\Microsoft\DRM" /r /d y
icacls "%programdata%\Microsoft\DRM" /grant administrators:F /t

rd /s /q "%programdata%\Microsoft\DRM"
mkdir "%programdata%\Microsoft\DRM"
  1. Re-register WMP for DRM:
regsvr32.exe wmvdspa.dll
regsvr32.exe wmspdmod.dll
regsvr32.exe wmploc.dll
  1. Reboot your machine. Then rerun setup.

For Windows 10/11 users, a common trigger is having old DRM-protected files from previous Windows versions. If you're upgrading, temporarily move those files to an external drive, then run setup. Move them back after the upgrade.

Last Resort: Use a Third-Party Tool

If none of the above works, grab a tool like DRM Mover or DRM Reset Utility (search GitHub for DRM migration). These can force-clean DRM licensing data. But honestly, in 6 years of help desk work, I've only needed these twice—the manual reset almost always does it.

Pro tip: If you're upgrading from Windows 7 or 8, the DRM migration is notoriously flaky. Always back up your %appdata%\Microsoft\DRM folder first. You can restore it if things go south.

Why This Happens

The error 0XC00D2AFF means Windows can't move your DRM licenses from the old install to the new one. It's usually corrupted registry entries or file permissions that got mangled during a previous install. I've seen it after a failed in-place upgrade or when someone deleted DRM files manually thinking they'd fix a media playback issue.

Bottom line: start with the 30-second fix, then the 5-minute reset. The command-line approach handles 99% of remaining cases. You've got this.

Was this solution helpful?