SPAPI_E_INCORRECTLY_COPIED_INF (0x800F0237) fix
Driver install fails because an INF file was copied wrong into C:\Windows\INF. Usually a corrupted copy or manual drag-drop gone bad.
First Cause: Manually copying an INF file into C:\Windows\INF
This is the most common reason you're seeing the 0x800F0237 error. Someone (maybe you, maybe a script) dragged or copied an INF file directly into C:\Windows\INF folder. Windows expects INF files there to be installed through the proper API, not by hand. When you copy and paste, the file metadata gets mangled — permissions, timestamps, or even partial writes. The driver installer sees this and says "nope, this INF wasn't staged correctly."
Here's how you fix it:
- Open File Explorer and go to
C:\Windows\INF. - Sort by "Date modified" to find the INF file you just copied — it'll be the newest one. Look for files named like
oem0.inf,oem1.inf, or something with a custom name. - Right-click that INF file and choose Delete. You'll get a permission prompt — click Continue. If it won't delete, you need to take ownership of the file first. I'll cover that in a sec.
- After deleting, reboot the machine. This clears any cached corruption.
- Now install the driver the right way: right-click the original INF file (from your downloads folder or driver package) and choose Install. Do NOT copy it into C:\Windows\INF first.
After step 5, you should see a brief command window flash, then a success message like "The operation completed successfully." If you still get the error, the INF file itself is corrupt — download a fresh copy of the driver.
Second Cause: A previous driver install left a broken oem*.inf file
Windows renames every INF it installs to something like oem0.inf, oem1.inf, etc. If one of those got partially written during a failed update — say the power cut out while installing a printer driver — that orphaned file will trip up any new driver install. The error code points to that exact scenario.
Here's the fix:
- Press Win + R, type
pnputil /enum-drivers, and hit Enter. A command window opens listing all installed driver packages. - Look for any entry with Published Name like
oem0.inf,oem1.inf, and check the Class Name or Provider Name to find the broken one. The broken ones often show a date from a failed install or a blank description. - Once you found the bad one, run
pnputil /delete-driver oem0.inf(replaceoem0.infwith the actual published name). You'll see a confirmation prompt — type Y and press Enter. - After deletion, run
pnputil /enum-driversagain to confirm it's gone. The list should be shorter. - Reboot the computer. Then try the driver install again — right-click the original INF and choose Install.
If you're not sure which one to delete, open C:\Windows\INF\setupapi.dev.log in Notepad. Search for "0x800F0237". You'll see a line like ! INF 'oem2.inf' failed - 0x800F0237. That tells you exactly which file to remove.
Third Cause: Antivirus or file-locking tool blocked the copy
Some aggressive security software — looking at you, McAfee and certain corporate endpoint tools — can intercept the INF copy step and write only part of the file. The result is a truncated INF that Windows can't parse. I've seen this happen mostly on Dell and HP business machines with Dell Data Protection or HP Sure Sense.
The fix is straightforward:
- Temporarily disable your antivirus or file-locking tool. For Windows Defender, turn off real-time protection in Windows Security -> Virus & threat protection -> Manage settings. For third-party AV, right-click the tray icon and choose "Disable" or "Pause protection" for 10 minutes.
- Delete the broken INF again as described in Cause #1. Check
C:\Windows\INFfor any recently modifiedoem*.inffiles and delete them. - Reboot the machine.
- Run the driver install again — right-click the original INF and choose Install.
- After it succeeds, re-enable your antivirus.
If you're still stuck after this, the INF file itself might be digitally signed incorrectly. Right-click the original INF file, go to Properties -> Digital Signatures, and check if there's a valid signature from the vendor. If it says "No signature", the driver package is bad — download it again from the manufacturer's site.
Quick-Reference Summary Table
| Cause | Symptom | Fix |
|---|---|---|
| Manual copy to C:\Windows\INF | Error appears when you try to install any driver | Delete that INF from the folder, reboot, install the driver normally |
| Orphaned oem*.inf from failed install | Error appears after power loss or crash during driver setup | Use pnputil /delete-driver to remove the broken oem*.inf, reboot |
| Antivirus or file-locker truncated the INF | Error on corporate or security-heavy PC | Disable AV temporarily, delete the damaged INF, install while protected |
One last thing: if none of these work, check if the INF file is for a 64-bit driver on a 32-bit system or vice versa. That mismatch can also throw this error. Match the architecture and try again.
Was this solution helpful?