How to fix Error 1345 on Windows 11

Why This Error Happens

Error 1345 typically occurs when Windows attempts to apply file or folder attributes (such as compression, encryption, or indexing flags) that conflict with the parent group’s existing attribute schema, often during a system restore, backup restoration, or file copy operation. This is commonly triggered by NTFS permission mismatches, corrupted attribute metadata inherited from a different file system (like FAT32 or ReFS), or an incomplete Windows Update that left registry attribute flags in an inconsistent state. In most cases, this points to a conflict between the security descriptor of a file/folder and the attributes Windows is trying to enforce on the entire containing directory.

Step-by-Step Resolution Guide

Step 1: Verify and Reset File/Folder Attributes

  • Open Command Prompt as Administrator (right-click Start > Terminal (Admin)).
  • Navigate to the problematic directory using cd /d "C:\Path\To\Folder".
  • Run attrib -r -a -s -h *.* /s /d to strip conflicting Read-only, Archive, System, and Hidden attributes recursively.
  • Re-check attributes with attrib alone to confirm the flags were cleared.

Step 2: Run System File Checker and DISM

  • Open an elevated Command Prompt or PowerShell window.
  • Execute sfc /scannow to scan and repair corrupted system files that may be causing attribute inheritance issues.
  • Follow up with DISM /Online /Cleanup-Image /RestoreHealth to repair the Windows component store, which often resolves group policy attribute conflicts.
  • Restart the machine after both commands complete.

Step 3: Check NTFS Permissions and Ownership

  • Right-click the affected folder, select Properties > Security tab.
  • Click Advanced, then verify the Owner field lists your account or “Administrators” — click Change if it lists an orphaned SID.
  • Enable “Replace all child object permission entries” and apply, allowing Windows to rebuild the permission tree without residual attribute conflicts.

Step 4: Rebuild the Group Policy Attribute Cache

  • Press Win + R, type gpedit.msc, and press Enter.
  • Navigate to Local Computer Policy > Windows Settings > Security Settings and confirm no conflicting File System policies are defined for the target path.
  • If policies exist, right-click and select Delete, then run gpupdate /force in an elevated terminal to refresh the cache.

Alternative or Verification Steps

  • After completing the steps, retry the original action (installation, restore, or file copy) that triggered Error 1345 and confirm it completes without the attribute warning.
  • If the error persists, boot into Safe Mode (Settings > Recovery > Advanced Startup > Restart Now) and repeat Step 1 and Step 3, as background processes in normal mode can sometimes re-lock attributes before they’re fully cleared.