NS_S_REBOOT_REQUIRED (0X000D2AF9) Fix That Actually Works
You see this after a Windows install finishes but cleanup stalls. A forced restart and manual file delete usually wraps it up.
You're Not Stuck — The Install Actually Worked
That 0X000D2AF9 error is annoying as hell. You watch the progress bar hit 100%, then boom — a warning that cleanup isn't complete. But here's the thing: your software is already installed. The error means Windows couldn't delete temp files or finalize registry entries because something was still using those files. I've seen this dozens of times, most recently on a client's HP laptop running Windows 11 23H2 after a driver pack install.
The Fix: Force a Full Restart and Clean Up
Don't mess with uninstalling or running the installer again — that's a waste of time. Here's what actually works:
- Restart your computer — not Shut Down, but Restart. Windows 10 and 11 use Fast Startup, which skips a full shutdown. A restart forces the pending file operations to execute and cleans up the leftover temp files.
- After reboot, check these locations for leftover installer files and delete them if they still exist:
C:\Windows\Temp%TEMP%(run this in File Explorer address bar)C:\ProgramData\Package Cache
That's it. 90% of the time, the error disappears after this. If you're still seeing the message, move to the next step.
Why This Works
The error code NS_S_REBOOT_REQUIRED (0x000D2AF9) is a success code in the Windows Installer (MSI) system — it's not a failure. The MSI engine completed the install but flagged that it couldn't perform some cleanup because files were locked by a running process (like the installer itself, or a service that didn't release a handle). A restart lets the system flush those file handles and run the pending rename/delete operations stored in PendingFileRenameOperations in the registry. That's why a Shut Down (which hibernates the kernel session) doesn't work, but Restart does — it fully reboots the kernel and triggers those cleanup routines.
When the Basic Fix Doesn't Cut It
Sometimes a restart alone isn't enough. Here's the variations I've run into:
1. The error keeps coming back after restart
This usually means the installer is trying to overwrite a file that's part of a running service (like a .dll loaded by svchost.exe). I've seen this with McAfee and Norton installers. Fix: Boot into Safe Mode (press F8 or Shift+Restart → Troubleshoot → Startup Settings → restart → select Safe Mode). Run the installer again — it'll finish immediately because no locked services are running.
2. You can't delete the temp files — access denied
Open an elevated Command Prompt (right-click Start → Command Prompt Admin or Terminal Admin). Run:
takeown /f C:\Windows\Temp /r /d y
icacls C:\Windows\Temp /grant Administrators:F /t
rmdir /s /q C:\Windows\Temp
mkdir C:\Windows\Temp
This forces ownership and full control, then recreates the folder. I've had to do this twice in the last year for clients who ran low on disk space — the temp folder got corrupted.
3. The error appears after a Windows Update
If you just ran a Windows update and see this, the update likely needs a second reboot. Open Settings → Windows Update → Check for Updates. If there's a pending restart message, do it. I've also seen cases where the SoftwareDistribution folder got bloated. Stop the Windows Update service (net stop wuauserv), rename C:\Windows\SoftwareDistribution to SoftwareDistribution.old, restart the service (net start wuauserv), then re-run Windows Update. This clears out corrupted downloads.
How to Prevent This Mess
You can't avoid every instance, but here's what I tell my clients to reduce the odds:
- Close all programs before installing anything — especially browsers, Office apps, and antivirus. Those lock files like crazy.
- Disable Fast Startup in Power Options. It's a bad idea on most PCs anyway — causes boot loops and weird driver issues. Run
powercfg /h offin an admin prompt to kill hibernation entirely. - Run the installer as Administrator — right-click → Run as Admin. This prevents permission-related cleanup failures.
- Keep 15-20% free disk space — Windows Installer needs room for temp files. I've seen this error more often on drives with less than 5GB free.
Bottom line: don't panic when you see 0x000D2AF9. It's a success code that needs a kick in the pants. One restart, maybe a temp folder nuke, and you're done.
Was this solution helpful?