Removing NTFS Folder Permissions Using .NET

  • Thread starter Thread starter chanmmn
  • Start date Start date
C

chanmmn

WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???
 
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder,
But the problem is, the folder has a couple of inherited permissions which I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or special
XP features?
Thanks ahead!

--Ram
 
just a few pointers..
you could use cacls.exe thats on xp/2000 which will allow you to set/reset
permissions on folders/files. check the help on the command for usage..
in .net, you could use the wrapper classes for wmi provided by
system.management ..i'm not sure if this is what you meant when you
mentioned 'without using wmi'...
 
Hey ISK,
Thanks for your reply!
I know of Cacls.exe and of XCacls.exe, but I'm looking for a way of doing so
from .NET without shelling outern exec's...
About the WMI, - I cant use WMI because I dont have WMI on my servers, so
the system.management solution's out of question...
Thanks again,

--Ram
 
Back
Top