I'm looking to remove an individual NTFS permissions from a folder without removing or affecting the other permissions set on the folder. Is this possible?
Go to a command prompt (running as administrator) and type
I think you want the
/remove[:[g|d]] Sid removes all occurrences of Sid in the ACL. With :g, it removes all occurrences of granted rights to that Sid. With :d, it removes all occurrences of denied rights to that Sid.
parameter. If you don't want to use icacls then right click the folder, select Properties, then go to the Security tab. Select the username you want to edit and modify the access rights from there.
Is there a way to do this on a group of folders? I have about 300 folders that I need to remove the same permission from. Or would doing this in Visual Studio code be easier?
You can set the attributes in vb.net. Have a look at this: http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.attributes(v=vs.110).aspx
You could write a program that goes through all your folders and set that attribute.
You can set the attributes in vb.net.
I don't think that allows you to play with the access lists, just the regular attributes (read, hidden, system, archive).
If you go the icacls route you could just create a cmd file with an icacls command on each line (one for each folder).