Electronics and Computer Tricks

A Blog About Electronics and Computer Tricks and Latest Tech News..

Windows

LightBlog

Breaking

Breaking News

Wednesday, 9 October 2013

FOLDER LOCKING IN SIMPLE WAY USING CACLS

Locking Steps
  1. Run cmd in Administrator mode.
  2. Type the following 
    cacls "folder path" /d everyone:n (eg: cacls c:\xxx for xxx folder in C: drive.
  3. cmd will ask for confirmation give yes as your answer

Now the Folder is locked you cannot access the folder even if you have  administrator rights

To unlock

  1. Run cmd in Administrator mode.
  2. Type the following 
    cacls "folder path" /g everyone:n
In case of failure of Unlocking, to unlock the folder 
  1. Download the zip file from here
  2. add the registry file "Take Ownership - Install.reg" in the zip file to registry
  3. Right click on the locked folder 
  4. Click on Take ownership
Note

You can remove Take ownership by  adding the registry file "Take Ownership - uninstall.reg" in the zip file to registry
You can use this shell extension to gain access to any file/folder on Access denied problems

No comments:

Post a Comment