Windows 0x00000005High

Windows Error 5: Access Denied — Causes and Fixes

Learn how to quickly fix Error 5 (Access Denied) in Windows 10 and 11. Step-by-step instructions for setting permissions, disabling UAC, and restoring system files.

Updated at February 22, 2026
5-10 min
Medium
FixPedia Team
Применимо к:Windows 10Windows 11Windows Server 2019

What Error 5 Means

Error 5 in Windows is the system code ERROR_ACCESS_DENIED, which means "Access is denied." The system blocks an operation because the current user or process lacks the necessary permissions. The full error text is: "Error 5: Access is denied."

The error occurs in typical scenarios:

  • Launching or installing programs.
  • Copying, moving, or deleting files and folders.
  • Accessing network resources or printers.
  • Changing system settings or the registry.

The code indicates a security issue and requires checking permissions or protection settings.

Causes

The following specific causes trigger Error 5:

  1. Insufficient user privileges — the account is not part of the Administrators group or lacks explicit permissions on the object.
  2. File locked by another process — the file or folder is in use by the system, an antivirus, or another program.
  3. Antivirus or firewall interference — security software mistakenly blocks the operation as a potential threat.
  4. Corrupted system files — components responsible for access control are damaged.
  5. Overly strict UAC settings — User Account Control prevents operations requiring elevated privileges.
  6. Group policies or corporate restrictions — in networked environments, an administrator may limit access.
  7. Incorrect permissions on the object — even an administrator will be denied if the file or folder has explicitly restricted permissions.

Solutions

To fix Error 5 in Windows, perform the following actions in the specified order. Start with the simplest methods and move to more complex ones only if previous steps didn't help.

Solution 1: Run as Administrator

If the error occurs when launching a program, use elevated privileges.

  1. Locate the program's executable file (.exe) or shortcut.
  2. Right-click on it.
  3. Select "Run as administrator" from the context menu.
  4. If a UAC prompt appears, click "Yes."

This method solves the problem if the cause is insufficient privileges for the current user. If the error is related to a specific file or system setting, proceed to the next solutions.

Solution 2: Check and Modify Permissions

If the error occurs when working with a specific file or folder, configure the permissions.

Windows 11 file properties Security tab for configuring access permissions

Configuring permissions via the Security tab

  1. Right-click the problematic file or folder.
  2. Select "Properties" → "Security" tab.
  3. Click "Edit" (or "Advanced" for advanced settings).
  4. In the "Group or user names" list, find your account. If it's not there, click "Add," enter the username, click "Check Names" → "OK."
  5. Select the account and set the necessary permissions: for full access, check "Full control"; for reading, check "Read & execute" and "Read."
  6. Click "Apply" and "OK" in all windows.
  7. Repeat the operation that caused the error.

⚠️ Important: Do not modify permissions for system files and built-in accounts (e.g., SYSTEM) unless you are sure of your actions. This can disrupt Windows functionality.

Solution 3: Temporarily Disable Antivirus and Firewall

Security software may block access erroneously.

Windows Defender Firewall window with toggle for turning on and off

Turning Windows Defender Firewall on and off

  1. Disable the antivirus:
    • Open the antivirus interface (via the system tray icon).
    • Find "Real-time protection" or a similar option.
    • Temporarily disable all components (for 10–15 minutes).
  2. Disable the Windows Firewall:
    • Open "Control Panel" → "Windows Defender Firewall."
    • Select "Turn Windows Defender Firewall on or off."
    • Disable the firewall for private and public networks → "OK."
  3. Check if the error is resolved.
  4. Re-enable the antivirus and firewall.
  5. If the problem is solved, configure exclusions in the antivirus for the program or folder.

Solution 4: Repair System Files with SFC and DISM

Corrupted system files can disrupt security mechanisms.

  1. Open the Start menu, type "cmd."
  2. Right-click "Command Prompt" → "Run as administrator."
  3. Run the command:
    sfc /scannow
    
    The process will take 10–20 minutes.
  4. After completion, run:
    DISM /Online /Cleanup-Image /RestoreHealth
    
    Ensure the computer is connected to the internet to download source files.
  5. Restart the PC and check if the error is resolved.

Solution 5: Configure or Temporarily Lower UAC

Overly strict User Account Control can block operations.

  1. Open "Control Panel" → "User Accounts" → "Change User Account Control settings."
  2. The slider determines notification levels:
    • "Always notify" — maximum security.
    • "Notify me only when apps try to make changes to my computer" — recommended.
    • "Never notify" — minimum security (temporary for testing).
  3. For testing, set to "Never notify" → "OK."
  4. Restart the computer and check if the error disappears.
  5. If the problem is solved, revert to an intermediate level or configure exclusions for specific programs. Do not leave UAC disabled permanently.

Solution 6: Scan for Malware

Malicious programs often change access permissions or block system functions.

  1. Launch your antivirus software and perform a full system scan (not a quick scan).
  2. Additionally, use specialized utilities like Malwarebytes (free version) to detect potentially unwanted programs.
  3. After cleaning, restart the computer and check if the error persists.

Prevention

To minimize the risk of Error 5 in the future:

  • Use a standard account for daily tasks — reserve the administrator account for installing software and changing system settings.
  • Regularly update Windows and your antivirus — updates patch security vulnerabilities.
  • Configure permissions consciously — grant only the minimum necessary permissions. Avoid "Full control" for all users.
  • Do not disable UAC completely — adjust the level or configure exclusions instead of disabling it entirely.
  • Create restore points before making significant changes (installing software, editing the registry).
  • Do not run unknown programs as an administrator — this can lead to permission changes by malware.

Following these recommendations will help not only fix the current Error 5 but also prevent its recurrence.

F.A.Q.

What is Windows Error 5 and when does it occur?
Why does Error 5 appear even when I run the program as an administrator?
How to properly set permissions to avoid Error 5?
Is it necessary to disable UAC to fix Error 5?

Hints

Run the program as administrator
Check and change object permissions
Temporarily disable antivirus and firewall
Restore system files via SFC and DISM
Adjust or temporarily lower UAC level
Scan for malware

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community