I have a hard drive which I need to recover specific files from but all the folders in the K:\ drive are denying me access even though I took owner ship of the full drive I.E
C:\Windows\System32>takeown /F K:\
This granted me access to the drive and see the folders but I can not access any of the folders after that.
Is there a way in which I can use Takeown to apply ownership to every directory on the drive>
Best Answer
Is there a way in which I can use
takeown
to apply ownership to every directory on the drive?This can be done in two different ways, using
takeown
oricacls
.Take Ownership of an Object using
takeown
CommandThis command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.
Open an elevated command prompt (administrator).
To grant ownership to administrators group:
To Take Ownership of a Folder or Drive and All Contents using
icacls
CommandOpen an elevated command prompt (administrator).
To set administrators group as owner:
Further Reading