[python-win32] win32net

Tim Roberts timr at probo.com
Thu Sep 7 20:05:49 CEST 2006


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, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list