High
Operating Systems
✓ Solution Verified by Community (0+ upvotes)
Error Code error-sharing-violation — Windows 11
ERROR_SHARING_VIOLATION = 32
Oprava založena na komunitních zprávách a expertní analýze. Naposledy ověřeno: 2026-08-12
· Jak ověřujeme opravy
| Error Code | error-sharing-violation |
|---|---|
| Affected System | Windows 11 (Microsoft) |
| Difficulty | High |
| Estimated Time | 20 min |
| Requires Admin Rights | ⚠️ Yes |
Postup řešení
- 1 First, identify which program is locking the file. The error message usually shows the file path. If it's a program you're trying to update, close that program completely. For example, if you're updating a game, close the game launcher (Steam, Epic Games) and any related processes.
- 2 Press Ctrl+Shift+Esc to open Task Manager. Go to the 'Processes' tab and look for any processes that might be using the file. For example, if the file is in your OneDrive folder, look for OneDrive. Right-click and select 'End task' to close it.
- 3 If you can't find the process, use a free tool called 'Handle' from Microsoft Sysinternals. Download it, open Command Prompt as administrator, and run 'handle.exe -a [file path]' to see which process has the file open. Then close that process.
- 4 If the file is locked by a system process, restart your computer. This releases all file locks. After restarting, try the operation again.
- 5 If the error occurs during a software installation, try running the installer as administrator. Right-click the installer and select 'Run as administrator'. This gives it the permissions it needs to replace locked files.
- 6 As a last resort, use the 'takeown' and 'icacls' commands to take ownership of the file and grant yourself full control. Open Command Prompt as administrator and run: takeown /f "C:\path\to\file" /r /d y, then icacls "C:\path\to\file" /grant administrators:F /t. This forcefully gives you permission to modify the file.
🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:
🔧 Stále máte problémy?
Popište svůj přesný problém Error Buddymu a získejte personalizovanou opravu během několika sekund.
🛠️ Vyzkoušet Error Buddy — Zdarma