Add users to directory/folder and set permissions in Windows

Adam Jones ajones1 at gmail.com
Mon Aug 21 17:53:52 EDT 2006


Gallagher, Tim (NE) wrote:
> I was wondering if there was a way to add a user in active directory to
> a folder and set the permissions.

It should be possible. If you can use VBScript or JScript it will be
easier to find resources for those. You will probably need, at the
least, the win32 extension for Python, which you can find here:
http://www.python.net/crew/mhammond/win32/

A quick google search for "python active directory" turned up the
following page, which would probably also prove helpful:
http://tgolden.sc.sabren.com/python/ad_cookbook.html

That said if you are working on a command line script that just does
this using one of the scripting languages included in the windows
platform will probably be easier.




More information about the Python-list mailing list