Do you have admin rights to a computer that you want to lock other users out of? If you are this is the perfect solution for you. You can lock folder out from other users so they CANNOT acess them !
Every time the blocked folder will be accessed, it will ask for administrator password. Therefore making the folder will be locked out permanently from other unless you undo this !
To lock a folder, right-click on that folder and select Properties. Now navigate to Security tab, and click Edit as shown in the screenshot below.
A new window will pop-up, now under “Group and User Names”, select the user from the list whom you want to deny access to a specific folder, now under “Permissions for Users” check the Deny checkbox next to Modify(all other checkbox will get ticked automatically) as shown in the screenshot below.
Click OK and then click Yes when a Windows Security window will pops-up as shown in the screenshot below.
Now click OK again and you are done. Now the specific user that you selected from the list will be denied access to this folder. It’s that simple!
This is the Opposite of taking ownership, like in this Thread: Clicky