By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Help With Setting Permissions on Folders

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.