Last post Apr 01, 2008 04:34 PM by Veei
Apr 01, 2008 04:02 AM|Veei|LINK
I am writing a program that will automate our user creation in Active Directory. Problem is, most of the servers are in stand-alone domains (mixed 2K and 2K3 servers). We are moving towards merging them all into the same tree but it will take some time.
Anyway, I have successfully been able to create the user, set passwords, put them in the group I wish to, and create their home folder on the remote server via LDAP. The machine I am running the app from is not part of the domain(s) I am creating users
You think it wouldn't be this hard but I've searched everywhere for an answer as to how to set a user's newly created Home folder to not inherit NTFS permissions and set Administrators, System, and the user with full control.
Seeing as the machine the app is running on is not in that domain, I guess it doesn't know what the SIDs are for those users and groups. Is there a way to do this remotely via code? If not, is there a way to have the remote server run a cacls.exe from
it's own command prompt to do this or something similar?
I'm using VB but I'll take C# code or anything .net for that matter at this point!! Even a link... anything to put me on the right trail!
Thanks in advance
Apr 01, 2008 04:34 PM|Veei|LINK