VB: Looking for a way to replace NTFS Permissions on a folder, without using Shell
Posted on 2003-03-19
I've found various methods of using the CACLS commmand to change the NTFS ACL on folders on a windows 2000 computer. The problem is that I am modifying permissions on thousands of folders at once and shelling to a cmd /c cacls etc... is too time consuming and messy.
Any ADSI approaches etc would be appreciated.
Remember, I'm not looking to change existing ACE's or add an ACE to an ACL, but to replace the existing ACL all together.
Note:... It would be very useful if I had the ability to list current ACE's on a directory. Would definately cut down on the amount of folder I had to process, assuming checking the ACL would be faster than simply replacing it.
Any help is appreciated.
btw, this is my first question, sorry if I'm doing something incorrectly.