How to fix Error 32 on Windows 11

Troubleshooting Guide: Error 32 – “The process cannot access the file because it is being used by another process”

Why This Error Happens

Error 32 occurs when Windows 11 attempts to access, move, delete, or modify a file that is currently locked by another running process, service, or application. This file lock is a Windows mechanism designed to prevent data corruption when multiple programs try to write to the same file simultaneously. Common culprits include background services (like Windows Search Indexer or antivirus software), applications left open in the background, or orphaned processes that failed to release the file handle after closing.

Step-by-Step Resolution Guide

  1. Identify the Locking Process using Resource Monitor
  • Press Win + R, type resmon, and hit Enter.
  • Go to the CPU tab, and in the Associated Handles search box at the bottom, type the file name (e.g., report.docx).
  • Note the Process ID (PID) and name of the process locking the file.
  1. End the Locking Task via Task Manager
  • Press Ctrl + Shift + Esc to open Task Manager.
  • Locate the process identified in Step 1 (match by PID under the Details tab).
  • Right-click the process and select End Task. Retry your original file operation.
  1. Restart Windows Explorer
  • In Task Manager, find Windows Explorer under the Processes tab.
  • Right-click and select Restart. This clears many temporary file locks caused by File Explorer previews or thumbnails without requiring a full reboot.
  1. Check for Third-Party Antivirus/Backup Software Interference
  • Temporarily disable real-time scanning in your antivirus software (e.g., Windows Defender, McAfee, Norton) via its settings panel.
  • Attempt the file operation again. If successful, add an exclusion for the specific file/folder in your antivirus settings to prevent future locks.
  1. Use a Dedicated Unlocking Tool (If Steps 1-4 Fail)
  • Download and install a trusted utility like LockHunter or Unlocker.
  • Right-click the problematic file and select the tool’s “Unlock” option to forcibly release the handle.

Alternative or Verification Steps

  • Verify the Fix: After completing the steps, attempt to move, rename, or delete the file again. If successful with no error prompt, the lock has been released.
  • Alternative (Boot into Safe Mode): If the error persists due to a stubborn system-level process, restart into Safe Mode (Shift + Restart > Troubleshoot > Advanced Options > Startup Settings > Safe Mode) and perform the file operation there, as this loads minimal background services.