"access denied" when opening a folder

MAB MAB 0 Reputation points
2025-10-16T11:07:36.45+00:00

while opening folder got message "access denied" please help me to fix this issue.

I'm using windows server 2012

Moved from Sysinternals

Original title: access denied

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. VivianPhan-0145 3,470 Reputation points Independent Advisor
    2025-10-16T12:52:51.3366667+00:00

    Hi,

    This problem is typically caused by insufficient permissions, ownership conflicts, or security policy restrictions that were applied after folder migration, user profile changes, or updates. Please follow these steps carefully:

    Check Folder Ownership:

    Right-click the affected folder → PropertiesSecurity tab → Advanced.

      Under **Owner**, verify that your account or the *Administrators* group is listed.
      
         If not, click **Change**, enter your username (or *Administrators*), select **Replace owner on subcontainers and objects**, and click **Apply**.
         
         **Adjust Permissions:**
         
            Still under **Security**, click **Edit** → **Add**, then add your user account or *Administrators* group.
            
               Grant **Full Control** permissions and click **Apply** → **OK**.
               
               **Use Command Line (if access via GUI fails):** Open **Command Prompt as Administrator** and run:
               
               ```yaml
               takeown /f "D:\Path\To\Folder" /r /d y
    

    icacls "D:\Path\To\Folder" /grant administrators:F /t ```

               *(Replace the path with your actual folder path.)* This command sequence will take ownership and grant full control recursively.
               
               **Check if the folder is encrypted or locked by another process:**
               
                  Right-click → **Properties** → **General → Advanced** → check if *Encrypt contents to secure data* is enabled.
                  
                     If yes, ensure you’re logged in with the encryption certificate owner.
                     
                        You can also use **Sysinternals Process Explorer** to verify if another process has the folder handle open.
                        
                        **Verify Group Policy or Antivirus Restrictions:**
                        
                           Some GPOs or third-party security tools can restrict access to system folders.
                           
                              Check **gpresult /h gp.html** for applied policies, and temporarily disable real-time protection to test.
                              
    

    Once ownership and permissions are properly restored, you should be able to open the folder without the “Access Denied” prompt.

    I hope this helps you regain access smoothly 😊. If this resolves your issue, please click “Accept Answer” so others can benefit as well.

    Best regards,

    VP

    0 comments No comments

  2. VivianPhan-0145 3,470 Reputation points Independent Advisor
    2025-10-22T22:37:07.1033333+00:00

    Hi MAB MAB,

    Has your issue been solved? If it has, please accept the answer so that others can benefit too. If not, is there anything I can help you with? Please let me know.

    Vivian

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.