We help IT Professionals succeed at work.

Taking ownership of a folder

High Priority
87 Views
Last Modified: 2020-01-31
I am trying to take ownership of a folder of a user that is no longer here because we need access to some of the data. I was able to retrieve the folder from a previous backup. I copied it to my desktop and used the command line to take ownership. I ran C:\windows\system32>takeown /f "C:\foldername" /r /d y that I found on Google Search. It said I was the owner now but when I try to use teracopy (to overcome long filenames)  to copy the folder to another location I get access denied to some of the files. Is there a way around this?
Comment
Watch Question

Abdul Jalil Abou AlzahabConfiguration Manager & Windows 10 Administrator
CERTIFIED EXPERT

Commented:

Right click on the main folder -> Properties -> Security tab -> advanced -> and check on Replace all child object permission entries with inheritable permission entire from this object and confirm is your account is already listed.  

IT Consultant
CERTIFIED EXPERT
Commented:
Don't copy to your desktop. Move the folder to C:\Drive before applying the ownership.

Here are the steps to take full ownership of the folder.
https://winaero.com/blog/how-to-take-ownership-and-get-full-access-to-files-and-folders-in-windows-10/

Workaround for Teracopy:
https://www.reddit.com/r/software/comments/8e6ca8/teracopy_is_great_but_throws_access_denied_errors/

Explore More ContentExplore courses, solutions, and other research materials related to this topic.