How to fix Error 4 on Windows 11

Troubleshooting Guide: Error 4 – “The System Cannot Open the File” (Windows 11)

Why This Error Happens

Error 4 typically occurs when the Windows I/O subsystem cannot locate, access, or read a specified file due to a broken file path, corrupted file system entry, or insufficient NTFS permissions. This is commonly triggered by damaged system files, an interrupted disk operation, or a third-party application referencing a file that has been moved, deleted, or locked by another process. It can also stem from corruption in the Master File Table (MFT) on the volume where the file resides.

Step-by-Step Resolution Guide

  1. Run System File Checker (SFC)
    Open Command Prompt as Administrator (right-click Start > Terminal (Admin)) and run:
   sfc /scannow

Allow the scan to complete and repair any corrupted system files automatically.

  1. Check and Repair Disk Errors with CHKDSK
    In the same elevated Command Prompt, run:
   chkdsk C: /f /r

Replace C: with the drive letter where the problematic file is stored. You’ll likely be prompted to schedule the scan on next restart—type Y and reboot.

  1. Verify File Permissions
    Right-click the file (or its parent folder) > Properties > Security tab. Click Edit, select your user account, and ensure Full Control and Read & Execute permissions are checked. Click Apply.

  2. Take Ownership of the File
    If permissions can’t be changed, open Command Prompt as Administrator and run:

   takeown /f "C:\Path\To\File.ext"
   icacls "C:\Path\To\File.ext" /grant %username%:F
  1. Run DISM to Repair the Windows Image
    If SFC reports errors it cannot fix, run:
   DISM /Online /Cleanup-Image /RestoreHealth

This repairs the underlying Windows component store that SFC relies on.

Alternative or Verification Steps

  • Verify the fix: Try opening the file again, or check Event Viewer (eventvwr.msc) under Windows Logs > System to confirm Error 4 no longer appears.
  • Alternative fix: If the file is still inaccessible, try copying it to a new location or restoring it from a previous version via right-click > Properties > Previous Versions, or restore it from a recent backup/System Restore point.