Click here to Skip to main content
13,660,862 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.1K views
4 bookmarked
Posted 31 Jan 2017
Licenced CPOL

Resolving Windows Folder Access Denied Error

, 31 Jan 2017
Rate this:
Please Sign up or sign in to vote.
Resolving Windows folder access denied error

I previously got rid of my desktop when its motherboard got damaged. Prior to throwing it away, I recovered its SATA hard drive.

folderaccesserror9

I recently connected the retrieved hard drive into my laptop as shown above (Local Disk (G:)) and attempted to delete windows system folders such as the “hidden” ProgramData folder.

folderaccesserror2

However, I ran into an error message “you require permission from administrators to make changes to this folder” as shown below:

folderaccesserror3

The simplest way to resolve this would be for me to log onto my desktop and delete the file from there. However, my desktop no longer exists.

I therefore tried several ways of resolving this error including:

  • Disabling the UAC local security policy that enforces this check
  • Enabling “inheritance” in the security options of the folder

Fortunately, I found the below script from howtogeek.com which fixed the error for me.

Download and extract the files from the above link.

Click the InstallTakeOwnership command. You will then be asked to confirm your action as shown below:

folderaccesserror4

Upon clicking Yes button, you will receive the below message to confirm successful installation of the InstallTakeOwnership script.

folderaccesserror5

Once the script has been installed, a new option “Take Ownership” will come up when you right click a folder or a file as shown below:

folderaccesserror6

Once you click the Take Ownership button shown above, a command window will come up which informs you that ownership of a selected folder/file has been transferred to your account as shown below:

folderaccesserror1

Afterwards, you can proceed to deleting the file/folder as shown below:

folderaccesserror7

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sifiso W Ndlovu
Technical Lead select SIFISO
South Africa South Africa
Sifiso W. Ndlovu is a certified Microsoft professional who holds a Master’s degree in IT Management from the University of Johannesburg. He specializes on a range of enterprise and consumer technologies using open source and proprietary software. He is the member of the Johannesburg SQL User Group wherein he has made several presentations on User Group Meetings and SQL Saturday sessions. He has written for a number of publications including SQLShack.com and SQLServerCentral.com.

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 4 Pin
Member 123643901-Feb-17 22:17
memberMember 123643901-Feb-17 22:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web05-2016 | 2.8.180810.1 | Last Updated 31 Jan 2017
Article Copyright 2017 by Sifiso W Ndlovu
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid