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”

Work down the table until the file can be renamed, moved or deleted again.

FixWhere to do itTime
End the dllhost.exe processTask Manager > Details tab1 minute
Close the program that uses the fileTask Manager > Processes1 minute
Restart WindowsStart > Power > Restart2 minutes
Scan for malwareYour antivirus10 minutes
Clean bootmsconfig10 minutes

Before you start

These names appear throughout the steps, so it helps to know what each one is.

NameWhat it isSafe to end
dllhost.exeCOM Surrogate helper processYes, Windows restarts it when needed
Windows ExplorerThe File Explorer and taskbar processUse Restart, not End task
msconfigSystem Configuration toolNot 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

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Select the Details tab.
  3. Right-click dllhost.exe and choose End task.
  4. 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

  1. In Task Manager, open the Processes tab.
  2. Right-click Windows Explorer and choose Restart.
  3. 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

  1. Press Win + R, type msconfig and press Enter.
  2. On the Services tab, tick Hide all Microsoft services and click Disable all.
  3. On the Startup tab, choose Open Task Manager and disable each non-essential startup item.
  4. 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.

  1. Press Win + R, type msconfig and press Enter.
  2. Re-enable the services and startup items you turned off, leaving out the one that caused the error.
  3. 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

SituationTry this
Error appears once, then clearsEnd dllhost.exe
File belongs to a program you useEnd that program in Task Manager
Started after installing an appUninstall the app
Keeps returning on many filesClean boot, then malware scan
File will not delete at allDelete in Safe Mode

Sources

3 Comments

  1. Thank you! Method 1 worked perfectly. Thanks for providing easy-to-follow instructions.

Leave a Reply

Your email address will not be published. Required fields are marked *