Wolf, Matthias ALRT/ELD wrote:

> 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
>
> ############################################################################
>
>

I'm not sure what you were expecting.  That request asks for all of the
users in group "GROUP".  The group name is "GROUP", because that's what
you specified.

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

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

Reply via email to