[python-win32] win32net
Mark Hammond
mhammond at skippinet.com.au
Fri Sep 8 08:22:58 CEST 2006
Try something like:
>>> import win32net
>>> win32net.NetGroupGetUsers(win32net.NetGetAnyDCName(), 'domain users', 1)
Mark
-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Wolf, Matthias ALRT/ELD
Sent: Thursday, 7 September 2006 11:55 PM
To: python-win32 at python.org
Subject: [python-win32] win32net
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 --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4044 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-win32/attachments/20060908/1d770999/attachment.bin
More information about the Python-win32
mailing list