hello Friends,
I need to remove all folder sharing permission for all users (not for groups) to a remote folder.
My existing code look like this...
oSecurity = File.GetAccessControl(TopL
evelDirect
oryName)
Dim DirSecRules As AuthorizationRuleCollectio
n = oSecurity.GetAccessRules(T
rue, True, GetType(System.Security.Pr
incipal.Se
curityIden
tifier))
For Each DirSecRule As FileSystemAccessRule In DirSecRules
oSecurity.RemoveAccessRule
All(DirSec
Rule)
Next
File.SetAccessControl(TopL
evelDirect
oryName, oSecurity)
problem is, it is remove all the users/Group permission but i want to remove only user permission.
I'm expecting your reply ASAP
Advance thanks for you help...
Newmancroos
Start Free Trial