[python-win32] win32net

Wolf, Matthias ALRT/ELD Matthias.Wolf at al-lighting.com
Thu Sep 7 15:54:40 CEST 2006


Hallo,

I try to print every member of a windows doamin-group, the username as
well as the group
name. But I just receive the usernames and no groupnames, where is my
fault? 

Here is a small codesnip from a large script of attemps.


codesnip:
###################################################################

import win32net

dict = win32net.NetGroupGetUsers(r'\\domain.com', 'GROUP', 1)
for line in dict[0]:
    print line

########################################################################
####


Thanks a lot of any hint, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060907/3f381f4d/attachment.htm 


More information about the Python-win32 mailing list