1. Home
  2. Microsoft
  3. Windows
  4. How to Fix Windows System Error Code ERROR_213: Step-by-Step Guide

How to Fix Windows System Error Code ERROR_213: Step-by-Step Guide


If you’ve encountered Windows System Error Code ERROR_213, you’re not alone. This error often disrupts your workflow and can be frustrating if you don’t know where to start. But don’t worry—this guide will walk you through practical, easy-to-follow steps to fix the issue.


What is Windows System Error Code ERROR_213?

Before diving into solutions, it’s helpful to understand what ERROR_213 means. This error typically appears as:

"ERROR_213: The process cannot access the file because it is being used by another process."

It indicates that a program or process tried to access a file, but the file was already locked or in use by another application. This can happen in various contexts, like file handling, software installations, or when your system operates files behind the scenes.


Common Causes of ERROR_213

  • A file is open in another program (e.g., Word or Excel).
  • Background processes locking the same file.
  • Malware or viruses occupying system files.
  • Corrupt or outdated software.
  • Insufficient user permissions.

Now, let’s get hands-on with troubleshooting.


Step-by-Step Guide to Fix Windows System Error Code ERROR_213

Step 1: Identify the Locked File or Process

The first step is to identify what’s locking the file to clear it.

  • Use Resource Monitor:

    1. Press Windows + R, type resmon, and hit Enter.
    2. Go to the CPU tab.
    3. In the Associated Handles search box, type the name of the file or folder causing the error.
    4. The Resource Monitor will display the processes using that file.

  • End the Locking Process:

    1. Right-click the process.
    2. Select End Process.
    3. Confirm if prompted.

A gentle tip: Be cautious about which process you end—make sure it’s safe to stop, to avoid crashing important system functions!


Make sure all apps that might be using the file are closed.

  • Check your taskbar and system tray for running applications.
  • Exit all open programs like editors, file explorers, or syncing tools (Dropbox, OneDrive).
  • Restart your computer to ensure all handles are released.


Step 3: Run a Full Malware Scan

Malware could be locking your files to prevent modification.

  • Use Windows Defender or a trusted antivirus program.
  • Run a Full Scan rather than just a quick one.
  • Remove or quarantine any detected threats.

This can take some time, but it’s essential for system health and your peace of mind.


Step 4: Check User Permissions

Sometimes, insufficient permissions cause ERROR_213.

  • Right-click the problematic file or folder.
  • Select Properties > Security tab.
  • Click Edit to change permissions.
  • Ensure your user account has Full Control.
  • Click Apply and OK.

If this doesn’t work, consider running the application as an administrator:

  • Right-click the application shortcut.
  • Select Run as administrator.


Step 5: Use the Command Prompt to Unlock Files

For stubborn files, Command Prompt can help.

  1. Open Command Prompt as Administrator:

    • Press Windows + X and select Windows Terminal (Admin) or Command Prompt (Admin).
  2. Type:
    handle.exe filename
    (Note: handle.exe is a part of Sysinternals Suite from Microsoft; download it from the official Microsoft site.)
  3. Identify the handle number locking the file.
  4. Use the command to close the handle:
    handle.exe -c <handle_number> -p <process_id>

This advanced step requires care—only proceed if comfortable with command-line tools.


Step 6: Update or Reinstall Problematic Software

If the error arises from a particular software:

  • Check for updates from the official site or use built-in update checks.
  • Uninstall and reinstall the software.

This can resolve issues caused by bugs or corrupt files.


Step 7: Perform a System File Check (SFC) and DISM Scan

Corrupted system files might cause ERROR_213.

  • Open Command Prompt as Administrator.
  • Run System File Checker:

    sfc /scannow

  • Let the scan complete. It will automatically repair corrupted files.
  • Next, run DISM (Deployment Image Servicing and Management) to fix Windows image:

    DISM /Online /Cleanup-Image /RestoreHealth

This process can take some time but often repairs underlying system issues.


Final Thoughts

Encountering Windows System Error Code ERROR_213 can feel overwhelming, but with these careful and thorough steps, you can resolve it without unnecessary stress. Remember, always back up important files before making significant changes, and when in doubt, ask for help from tech professionals.

If you found this guide helpful, please share it to support others experiencing the same trouble! And if you have specific questions or success stories, feel free to leave a comment below.


Keywords for SEO

  • How to fix Windows ERROR_213
  • Windows system error code 213 solution
  • File in use error Windows 10/11
  • ERROR_213 troubleshooting Windows
  • Fix process cannot access file error


Thank you for reading! Wishing you a smooth, error-free Windows experience!

Updated on June 21, 2025
Was this article helpful?

Related Articles

Leave a Comment