Hi,

ive managed to get my app to add a new active directory user and also create the relevant directories on the server but i cant for the life of me work out how to set the newly created folders permissions. I need to be able to specify an active directory user or group and set the folders permissions so only the user or group has access.

basically a way to automate the security and permissions properties in windows server for files or folders.

any help would be great