you can try using the shell command cacls.exe from within the application.
just type in cacls.exe /? in the command shell for options. if that doesn't
work out, you can use WMI to set the permissions. The classes that you might
want to look at would be Win32_Share, Win32_LogicalShareSecuritySetting,
Win32_SecurityDescriptor and Win32_ACE. Here's an example of how to change
access settings on a file:
http://msdn.microsoft.com/library/de...itysetting.asp
this is in vbscript - you'll need to change this to .net using the WMI class
wrappers under System.Management namespace.
hope this helps you go in the right direction..
Imran.
"Jeremy Winchell" <Je************@discussions.microsoft.com> wrote in
message news:D6**********************************@microsof t.com...
I have an applications that imports new AD users. It creates a folder to
store the user profile information, and a folder for their home directory.
I would like to set the Permissions on these two folder objects, but I am
unsure how. I am fairly new to this side of things so I'm looking for some
help or guidance on how to do this.
I haven't worked with ACL's much, so I'm not sure what kind of interfaces
to tools are available to help set them on these objects.
Any help would be appreciated.