Try something like:
 
>>> import win32net
>>> win32net.NetGroupGetUsers(win32net.NetGetAnyDCName(), 'domain users', 1)
 
Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Wolf, Matthias ALRT/ELD
Sent: Thursday, 7 September 2006 11:55 PM
To: python-win32@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 

<<attachment: winmail.dat>>

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to