How to fix Access Denied on Windows 10

0
58

In the process of opening a file or folder on Windows, but you can not open it and on the screen you receive the error message  Access denied. This article will walk you through a number of ways to fix “Access Denied” errors in different situations.

Overview of Access Denied error

This is a fairly common error in Windows related to access, file system, etc. This problem occurs when you can not open the file or directory, the service on the computer can not boot, You can not access the web page, etc. The cause of the error may be due to corrupted files, encrypted files, corrupted user profiles, and so on. Exactly the username and password you use, nor can you open that folder. Error messages vary depending on the issue.

Problem 1: Error 5: Access is denied

Error message 5: Access is denied

When you install an app or game on your computer, you can not access a specific location or edit a file. You try to restart certain services or software but can not. You receive one of the following error messages:

  • “Windows could not start the SSHD service on the local computer.” Error 5: Access is denied.
  • “Error 5: Access is denied.” Error 5: Access is denied.
  • “Unable to execute file in temporary directory. Setup was canceled.” Error 5: Access is denied.

Cause of error Error 5: Access is denied

  • The User Account Control (UAC) window does not grant permissions to the Local user.
  • Existing users do not have sufficient permissions to access.
  • Lack of permission to access remote computer.
  • Time synchronization error.
  • Firewall or third-party software programs can remove the connection to the remote computer.

How to fix Error 5: Access is denied

1. Check that your computer’s date and time have been set correctly

If the date and time on your computer are not set correctly, this could be the cause of many errors on your system, including Error 5: Access is denied. Therefore, to fix the error, the first solution you can apply is to check whether the date and time on your computer has been set correctly.

2. Run the program under Admin

Sometimes some programs require specific permissions to perform actions.

If you are running a program from Start, right-click on any program and select Run as administrator.

– If you run another program, right-click any program, and then click Run as Administrator.

– If you want to run Command Prompt under Admin, just right click on the Start button and select Command Prompt (Admin).

3. Clean the virus on the system

Viruses have a great influence on your system. Once your computer is infected by a virus, it can cause file errors, enable / disable services, disable Windows Firewall, and cause your computer to become infected. Slow down.

Viruses can affect the “core” files that Windows requires to run applications, thus causing Error 5. To make sure no errors occur, you wipe out your system. by the effective antivirus software.

4. Clean up temporary system files and folders

Windows stores junk files in the process of users using the computer and surfing the web. This is also the reason why your computer is slowing down because it stores many junk files and causes errors. 5. To clean up junk files, follow these steps:

1. Press the Windows + R key combination to open the Run command window, then type cmd in it but do not press Enter .

2. Press and hold Ctrl + Shift and press Enter to open Command Prompt under Admin.

3. On the Command Prompt window, enter “cleanupmgr” and hit Enter.

4. Disk Cleanup will begin to calculate the space that the garbage files occupy and display the list on the screen.

5. At this time, you will see a list of junk files. Your task is to select the items that you want to clean up and click OK.

5. Update the driver

If the driver is too old, it could be the cause of the error. So to fix the problem you can try to apply the solution is to update the driver.

To update the driver, follow the steps below:

Right-click My Computer (or This PC in Windows 10), and then click Properties.

On the Properties window you will see the Device Manager in the left pane (on Windows 10, 8x, Windows 7, and Windows Vista).

If you use Windows XP, you will have to click the Hardware tab and you will see the Device Manager.

3. On the Device Manager window, check whether any of the icons on the list are yellow. If right click on it and select Properties. On the Properties window, click on the Drivers taband then click on Update Drivers.

To update all the latest drivers, navigate to the Control Panel, then click Windows Update (on Windows 10, go to Settings => Update and Security and then click on Check for updates). This process will download and install the latest driver versions and install the necessary files on your computer.

6. Encrypt files or folders

Encryption is the best solution to protect your files and folders from unauthorized access. If you can not access these files and directories, the best way is to encrypt files and folders.

Follow the steps below to encrypt your files and folders:

Right-click the file or folder and select Properties. Next on the Properties window, select the General tab and click the Advanced button.

Here you just need to remove the contents of the Encrypt contents to secure data is gone.

If the Encrypt contents to secure data option is selected, you must confirm to decrypt the file and open the file.

7. Regain ownership of files or folders

To regain ownership of files or folders, first right-click on the file or folder you want to open and select Properties to open the Properties window. Here you select the Security tab .

Without access to the directory, on the screen you will see a message asking you to use the Admin privileges to access the directory. Your task is to click Continue to continue. At this point on the screen will appear a popup window containing the options for you to change the owner.

At Section Change Owner to, select the user account or the account your Admins. Next, select the Replace owner on subcontainers and objects.

Click OK, and then the message “You do not have permission to read the contents of the directory.” Do you want to replace the permissions directory with full permissions? All permissions will be replaced if you press Yes.

Click Yes to continue.

You can reset the security mode and allow the necessary access to the contents of the folder and folder.

8. Use Disk Error Checking 

Run CheckDisk command, also known as Disk Error Checking, is built into Windows 8. On Windows 8, Microsoft has redesigned the chkdsk utility – a tool to detect, check, and repair drive partitions. Also on Windows 8, Microsoft also introduced a system file called ReFS that does not require chkdsk offline to fix the problem.

9. Turn off Simple File Sharing (On Windows XP)

To turn off Simple File Sharing, first click Start, My Computer. On the Tools menu, click Folder Options, View.

Next, in the Advanced Settings section, uncheck Use simple file sharing (Recommended) and click OK.

Problem 2: Can not open file or directory

Error message can not open file or directory

When trying to open a file or folder in Microsoft Windows, you can not access and receive error messages such as:

  • “Folder is not accessible. Access is denied” (Folder can not be accessed.
  • You do not have permission to access this folder.
  • “You have been denied permission to access this folder. To gain access to this folder you will need to use the security tab.” (You have been denied access to this directory. To gain access to this directory, you will need to use the Security tab.)

Cause of error can not open file or folder

An “Access Denied” error can occur for one or more of the following reasons:

  • Folder ownership has been changed
  • You do not have the appropriate rights
  • File is encrypted
  • The files are stored on a Windows.old folder from the previous system. This usually happens after your computer is upgraded to a new version of Windows.

How to fix the problem can not open file or folder

Get ownership of files or folders in Windows

Step 1 . Select the file or folder you want to take ownership of and right-click it to select Properties from the context menu.

Step 2 . Select the Security tab and click on the Advanced button , then click on Change. If you are required to provide an administrator password or password, provide a confirmation or a password.

Step 3 . Type in the name of the person you want to grant ownership, and click on Check.

Step 4 . Click OK . If you want this person to be the owner of the folders and files stored in this folder, check the Replace owner box on subcontainers and objects .

Step 5. Click OK .

2. Change access

Often, Access Denied errors involve access or modification of files and directories. If you do not have rights, you can not access the specified location. If you are logged in as an administrator and can not access the directory, you can change permissions. Note: To change permissions you need to login as an admin.

Step 1 . Select the file or folder and right-click to select Properties , then click the Security tab .

Step 2 . Click your name in Group or user names to see the permissions you have.

Step 3 . Select all the options in Allow and click on OK and Apply . Then you will have full control over the file or directory such as editing, reading, executing, listing directory contents, etc.

3. Encrypted files or folders

Encrypting data is one of the best ways to protect your data from unauthorized access. You can not access the encrypted file or folder without the proper certificate. You can check whether the folder is encrypted by:

Step 1 . Select and right-click on specific files or folders to select Properties .

Step 2 . Select the General tab then click the Advanced button . If the Encrypt contents to secure data option is selected, the file is encrypted, you need the certificate to open it.

Problem 3: Rejecting access to files / folders, changing or deleting files or folders

Error message when accessing file / directory

When you delete, copy, move or change a file or folder on your computer, you may be blocked by Access Denied error saying you do not have permission to do so. Error message:

  • “Folder Access Denied.” You need permissions to perform this action. You need permission from TrustedInstaller to make changes to this folder. TrustedInstaller to make changes to this directory).
  • “Destination Folder Access Denied.” You need permission to perform this action.

Causes of rejection errors when accessing files / folders

This error can be due to the following reasons:

  • Files you can not access are being used.
  • You do not have permission to access this file.
  • User profiles may be corrupted.

How to fix denied errors when accessing files / folders

Get ownership by Command Prompt

There are several methods to take ownership of a file or folder and this solution uses the Command Prompt to regain ownership.

Step 1 . Right-click on the Start menu and select Command Prompt (Admin) . If the message enters a password or confirmation, provide the password and confirm.

Step 2 . Confirm the path to the folder you want to take ownership of. For example, you want to take ownership of the Photos folder in drive E and the address is: E: Photos.

Step 3 . Type takeown / f “E: Photos” (replace the path to your directory), then press Enter .

Step 4 . After the process is complete, restart the computer and check whether the problem has been fixed or not.

2. Delete corrupted files using third-party software

Broken files can not work properly, they can be image files, documents, system files, etc. Many corrupted files can not be repaired or even deleted. Here are the easiest ways to remove corrupted files.

Step 1 . Download, install and launch Eassos PartitionGuru.

Step 2 . Select the corrupted file or folder you want to delete, right click and select Delete Files Directly.

Step 3 . Click the Delete button to delete the selected file. Note that files deleted in this way will not be in the Recycle Bin, so you should delete files that are no longer important.

Tips to prevent corrupted files:

  • Save the file properly. When a problem or error occurs while saving the file, the file may be corrupted.
  • Remove USB storage device safely. Click on Safely Remove hardware and Eject Media before removing the USB device.
  • Turn off the computer properly. To shut down your computer, you should click the Start button and click Shut down instead of pressing the power button directly.

3. Create a new local user account

If the Access Denied problem is due to a corrupted account, you can resolve the problem by creating a new local user account / profile. To create a new account, follow the steps below:

Step 1 . Click the Start menu and select Settings. Click Accounts in Windows Settings.

Step 2 . Select Family & other people on the left and then click on Add someone else to this PC .

Step 3 . Click on the link I do not have this person’s sign-in information and click on Next . On the next screen, click Add a user account without a Microsoft , then select Next . You can now enter your username, password, password hint and select Next .

Issue 4: Receive the error message “Location is not available. Access is denied “

Error message Location is not available. Access is denied

When opening a partition on a computer hard drive or USB device, you can not open it and receive the error:

  • “Location is not available. E: is not accessible. Access is denied” (Not available.

The cause of the Location error is not available. Access is denied

  • The file system is corrupted. The file system on the drive is corrupt and therefore inaccessible.
  • You do not have the appropriate rights.

How to fix Location is not available. Access is denied

1. Change the permissions for the drive

Step 1. In Windows Explorer, right click on the partition you can not access and click Properties> Security> Advanced .

Step 2. Click on Add in Advanced Security Settings and on the next screen click on Select .

Step 3. Enter your username and click OK . You can then choose the following:

Type: Allow
Applies to: This Folder, subfolder and files
Basic Permissions: Full Control

Step 4. Click OK  and Apply to save the changes.

2. Recover data from inaccessible drives and format it

If the permissions change does not resolve the issue, you can recover data from inaccessible drives and format it to fix the problem. It’s easy to get data from no location and denied access. Here are the steps to recover data from a corrupted disk.

Step 1. Install and launch Eassos PartitionGuru, then check if the partition is live or not. If not, move on to the next step.

Step 2. Select the unreachable drive and click the File Recovery button from the toolbar. Make sure you select the correct partition.

Step 3. Select Complete Recovery mode and click the Start button to start the scanning of files and folders in the selected partition.

Step 3 . Click the Delete button to delete the selected file. Note that files deleted in this way will not be in the Recycle Bin , so you should delete files that are no longer important.

Tips to prevent corrupted files:

  • Save the file properly. When a problem or error occurs while saving the file, the file may be corrupted.
  • Remove USB storage device safely. Click on Safely Remove hardware and Eject Media before removing the USB device.
  • Turn off the computer properly. To shut down your computer, you should click the Start button and click Shut down instead of pressing the power button directly.

3. Create a new local user account

If the Access Denied problem is due to a corrupted account, you can resolve the problem by creating a new local user account / profile. To create a new account, follow the steps below:

Step 1 . Click the Start menu and select Settings . Click Accounts in Windows Settings.

Step 2 . Select Family & other people on the left and then click on Add someone else to this PC .

Step 3 . Click on the link I do not have this person’s sign-in information and click on Next . On the next screen, click Add a user account without a Microsoft , then select Next . You can now enter your username, password, password hint and select Next .

Issue 4: Receive the error message “Location is not available. Access is denied “

Error message Location is not available. Access is denied

When opening a partition on a computer hard drive or USB device, you can not open it and receive the error:

  • “Location is not available. E: is not accessible. Access is denied” (Not available.

The cause of the Location error is not available. Access is denied

  • The file system is corrupted. The file system on the drive is corrupt and therefore inaccessible.
  • You do not have the appropriate rights.

How to fix Location is not available. Access is denied

1. Change the permissions for the drive

Step 1 . In Windows Explorer, right click on the partition you can not access and click Properties> Security> Advanced .

Step 2 . Click on Add in Advanced Security Settings and on the next screen click on Select .

Step 3 . Enter your username and click OK . You can then choose the following:

Type: Allow
Applies to: This Folder, subfolder and files
Basic Permissions: Full Control

Step 4 . Click OK  and Apply to save the changes.

2. Recover data from inaccessible drives and format it

If the permissions change does not resolve the issue, you can recover data from inaccessible drives and format it to fix the problem. It’s easy to get data from no location and denied access. Here are the steps to recover data from a corrupted disk.

Step 1. Install and launch Eassos PartitionGuru, then check if the partition is live or not. If not, move on to the next step.

Step 2. Select the unreachable drive and click the File Recovery button from the toolbar. Make sure you select the correct partition.

Step 3. Select Complete Recovery mode and click the Start button to start the scanning of files and folders in the selected partition.

Step 4. Preview the file. The files found by Eassos PartitionGuru will automatically be displayed during the scan and you can preview the files and folders listed to check if these files are corrupted.

Step 5 . Data recovery. Select the files and folders you want to restore and right-click them to select Copy to, then you can choose the location to save the restore data.

Problem 5: Accesss Denied Error when using DiskPart

Access Denied error message when using DiskPart

When using DiskPart to clean the drive, you can not do it and receive an error message: 

  • “DISKPART> clean”
  • “DiskPart has encountered an error: Access is denied” (DiskPart error occurred: Access denied). 
  • See the event log for more information. 

What causes Accesss Denied error when using DiskPart

  • You are not authorized.
  • The device you want to clean in Write Protection mode.  

How to fix Accesss Denied when using DiskPart

1. Run Command Prompt as Administrator

Step 1 . Log on to the computer with the administrator account. If not, restart the computer and access the administrator account.

Step 2 . Click the Start menu and type cmd into the search box.

Step 3 . Right-click “cmd.exe” and select Run as administrator. If prompted for a password or confirmation, follow the instructions.

2. Write Protection 

Step 1 . Click Windows + R to open the Run, type regedit and click OK to open the Registry Editor.

Step 2 . In Registry Editor, navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies

Step 3 . Right-click on WriteProtect and change the position to 0.

 

Leave a Reply

avatar