EagleTempest
Technical User
VB 2005 .Net 2
I have a subfolder that has a user group, called CAD Users, with Full Control permissions on Files Only and these permissions are inherited from the parent folder. How can I remove this particular user group from this folder.
I've tried:
I have a subfolder that has a user group, called CAD Users, with Full Control permissions on Files Only and these permissions are inherited from the parent folder. How can I remove this particular user group from this folder.
I've tried:
Code:
Dim dInfo As New DirectoryInfo(Filename)
Dim dSecurity As DirectorySecurity = dInfo.GetAccessControl
dSecurity.RemoveAccessRule(New FileSystemAccessRule("PTR\CAD Users", FileSystemRights.FullControl, AccessControlType.Allow))
dInfo.SetAccessControl(dSecurity)