Steps to Resolve ERROR_NOT_ALLOWED_ON_SYSTEM_FILE Issue
The ERROR_NOT_ALLOWED_ON_SYSTEM_FILE error, represented by the value 313 (0x139), is accompanied by the message “Operation is not allowed on a file system internal file.”This specific Windows error code signifies that an operation cannot be executed on a system file.
To resolve this problem, ensure that you possess administrative rights. Additionally, confirm whether the file is currently being accessed by another process.
How can I resolve the ERROR_NOT_ALLOWED_ON_SYSTEM_FILE?
1. Execute the action in Safe Mode
- Open the Start menu on your taskbar, then click on the Power icon.
- While holding the Shift key, click on Restart.
- Once you reach the options screen, select Troubleshoot.
- Navigate to Advanced options and click on Startup Settings.
- Press the Restart button.
- After your computer restarts, press the number 4 on your keyboard to choose the Safe Mode option.
- Now, attempt the action that initiated the ERROR_NOT_ALLOWED_ON_SYSTEM_FILE error.
2. Acquire ownership of the file
- Click the Start button, type cmd in the search box, and select Run as administrator in the results.
- Input one of the following commands, ensuring to replace the path with the actual location of your file:
-
takeown /f "C:\path\to\file"&& icacls "C:\path\to\file"/grant administrators:F
-
- Try executing the operation on the system file that triggered the error.
3. Temporarily disable System Protection
- Press Win + R, type sysdm.cpl, and hit Enter.
- Within the System Properties window, navigate to the System Protection tab.
- Under the Protection Settings section, select your desired drive (typically the C: drive) and click on Configure below.
- In the new dialog, choose the option labeled Disable system protection.
- Click Apply and then OK to confirm your adjustments.
- A confirmation message will appear; click Yes to proceed with disabling system protection.
- Now attempt the operation you were performing before you encountered the ERROR_NOT_ALLOWED_ON_SYSTEM_FILE.
If the ERROR_NOT_ALLOWED_ON_SYSTEM_FILE arises from an application requesting permissions, verify that the application is legitimate. If everything checks out, try running the application as an administrator to avoid this issue.
We hope the offered solutions assist you in resolving the ERROR_NOT_ALLOWED_ON_SYSTEM_FILE problem on Windows.
Feel free to ask any further questions or provide suggestions using the comments section below.
Leave a Reply