list groups and users of NT domain

Waldemar Osuch osuchw at ecn.ab.ca
Wed Aug 13 14:31:23 EDT 2003


"Marko Faldix" <mf at mrinfo.de> wrote in message news:<bhdaer$10objp$1 at ID-108329.news.uni-berlin.de>...
> Hello,
> 
> I am looking for a language to achieve lists of all NT users and groups of a
> given NT domain on a Windows 2000 Server. It has to run within a webscript,
> so vbscript with windows scripting host is considered first. But before I
> dive into this, isn't it possible to do it with win32all?

Look into <Python>\Lib\site-packages\win32\demos folder.
In your case you are most interested in win32netdemo.py but it will not hurt
if you browse other files.
There is a lot of useful examples there

> An ideal result would be something like the listings one get while changing
> file permissions on a file on a NT machine. I think, this extends too far,
> because you browse all accessible domains (isn't it?), but maybe it is
> sufficient enough to concentrate on one given known NT domain.
> 
> Must I really use WSH and this combined with vbscript?
> 
> 
> Thanks for suggestions,

Waldemar Osuch




More information about the Python-list mailing list