How To Fix “File Is Open In COM Surrogate” In Windows 11 (2027)
You tried to rename, move or delete a file in Windows 11 and got the message “File is open in COM Surrogate.”
The full message reads that the action can’t be completed because the file is open in COM Surrogate, and closing the file does not always clear it.
This guide walks through the fixes in order and usually takes under 15 minutes.
Table of Contents
- Quick answer: “File is open in COM Surrogate”
- Before you start
- What COM Surrogate is
- Why the file shows as open in COM Surrogate
- End the COM Surrogate process
- Close the program that is using the file
- Restart Windows Explorer and the PC
- Scan for malware
- Uninstall recently added software
- Troubleshoot in a clean boot
- Delete the file from Safe Mode
- Repair damaged system files
- Why we skip turning off DEP
- If the message wording is different
- Undo the clean boot afterward
- After the error is gone
- Which fix matches your situation
- Sources
Quick answer: “File is open in COM Surrogate”
Work down the table until the file can be renamed, moved or deleted again.
| Fix | Where to do it | Time |
|---|---|---|
| End the dllhost.exe process | Task Manager > Details tab | 1 minute |
| Close the program that uses the file | Task Manager > Processes | 1 minute |
| Restart Windows | Start > Power > Restart | 2 minutes |
| Scan for malware | Your antivirus | 10 minutes |
| Clean boot | msconfig | 10 minutes |
Before you start
These names appear throughout the steps, so it helps to know what each one is.
| Name | What it is | Safe to end |
|---|---|---|
| dllhost.exe | COM Surrogate helper process | Yes, Windows restarts it when needed |
| Windows Explorer | The File Explorer and taskbar process | Use Restart, not End task |
| msconfig | System Configuration tool | Not a process, a settings window |
Save and close anything that might be using the file before you begin.
Ending a program discards unsaved changes, so save first.
What COM Surrogate is
COM Surrogate is the helper process dllhost.exe that runs a component outside the program that asked for it.
Microsoft engineer Raymond Chen explains that File Explorer mainly uses it to generate thumbnail previews.
If a thumbnail component crashes or holds the file, the file stays locked and Windows shows the error.
Why the file shows as open in COM Surrogate
- Stuck thumbnail extractor that keeps a handle on the file.
- A hidden program still running in the background.
- A recently installed third-party app, according to The Windows Club.
- Malware, which The Windows Club lists as a possible trigger.
Repeated crashes in folders full of videos can point to a faulty codec, per the same Microsoft source.
End the COM Surrogate process
- Press Ctrl + Shift + Esc to open Task Manager.
- Select the Details tab.
- Right-click
dllhost.exeand choose End task. - Repeat for every dllhost.exe entry, then retry the file action.
COM Surrogate is a helper process that Windows starts again when a component needs it.
Close the program that is using the file
If the program that owns the file is still listed in Task Manager, right-click it and choose End task.
Save your work in that program first, because ending it discards unsaved changes.
Restart Windows Explorer and the PC
- In Task Manager, open the Processes tab.
- Right-click Windows Explorer and choose Restart.
- If the lock remains, restart the PC and try the action again.
Scan for malware
The Windows Club recommends scanning with your antivirus software before anything else.
Use Windows Security or the antivirus you already trust, and do not install new tools just for this.
Uninstall recently added software
If the error began after you installed an app, remove that app and test again.
Open Settings > Apps > Installed apps, select the app and choose Uninstall.
Troubleshoot in a clean boot
- Press Win + R, type
msconfigand press Enter. - On the Services tab, tick Hide all Microsoft services and click Disable all.
- On the Startup tab, choose Open Task Manager and disable each non-essential startup item.
- Click OK and restart the PC.
If the error is gone, re-enable items one at a time to find the one causing it, as All Things How describes.
Delete the file from Safe Mode
If the file still cannot be deleted, start the PC in Safe Mode and delete it there.
Our start Windows 11 in Safe Mode guide shows how to get there.
Repair damaged system files
If the error keeps coming back, check Windows files with our SFC and DISM guide.
You can also try our check for updates guide to make sure Windows is current.
Why we skip turning off DEP
The Windows Club and All Things How both list turning off Data Execution Prevention as a last resort.
All Things How notes that the change applies to the whole system, not just COM Surrogate.
The command shown in All Things How is system-wide, which is why we do not repeat it here.
Because it lowers protection against malicious code, try every other fix on this page first.
If the message wording is different
Guides quote the message both as “can’t be completed” and as “cannot be completed.”
Both versions name COM Surrogate, so the same fixes apply.
If the message names a different program instead of COM Surrogate, close that program and retry.
Undo the clean boot afterward
A clean boot is a test, so return Windows to normal startup once you have found the cause.
- Press Win + R, type
msconfigand press Enter. - Re-enable the services and startup items you turned off, leaving out the one that caused the error.
- Click OK and restart the PC.
After the error is gone
Retry the action that failed, such as renaming, moving or deleting the file.
If the error returns on the same type of file, the thumbnail component for that format may be the cause.
Folders full of video or media files are the usual place this shows up, according to Raymond Chen of Microsoft.
If it keeps happening after a restart, work through the clean boot steps above to find the program involved.
Write down which startup item you re-enabled last before the error returned, because that is the likely cause.
Remove or update that program, then test the file action once more.
Which fix matches your situation
| Situation | Try this |
|---|---|
| Error appears once, then clears | End dllhost.exe |
| File belongs to a program you use | End that program in Task Manager |
| Started after installing an app | Uninstall the app |
| Keeps returning on many files | Clean boot, then malware scan |
| File will not delete at all | Delete in Safe Mode |
Thank you! Method 1 worked perfectly.
Thank you! Method 1 worked perfectly. Thanks for providing easy-to-follow instructions.
Method 1 worked perfectly, thanks!