Antonio Aranda wrote:
I wrote a script that will create user account, join them to security groups and create them a directory the automatically map at logon. It works great but for one thing. I need to edit the directory’s security tab so that only the user and the administrator have access to the directory. Can any one send me a sample script that will do this?
You can invoke external tool like cacls and edit security for this folders, You can use WMI calls from VBScript:
http://groups.google.com/group/microsoft.public.platformsdk.adsi/msg/e888d7df9cc4abaf or use AdsSecurity.dll from VBscript: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q279682 -- Tomasz Onyszko http://www.w2k.pl/blog/ - (PL) http://blogs.dirteam.com/blogs/tomek/ - (EN) List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ml/threads.aspx
