[python-win32] Win32_GroupUser
Tim Roberts
timr at probo.com
Mon Nov 13 18:47:05 CET 2006
Tim Golden wrote:
> | Working off a large-ish domain, I can't seem to find a form of:
> |
> | import wmi
> | conn = wmi.WMI ()
> | stuff = conn.Win32_GroupUser ()
> |
> | ... that doesn't enumerate the entire domain.
>
> I'm going to assume that you didn't intend the
> double-negative in the above.
>
Actually, I think he did. Everything he tried enumerated the entire
domain, which is not what he wanted. He wanted to query a subset only.
> Can you post a specific bit of code, just so I can
> see what you're doing, and indicate how many users
> you're expecting to get back and how many you actually
> get?
>
What he posted was:
conn.Win32_GroupUser (GroupComponent = "Win32_Group.SID=sid_number")
Suggesting, perhaps, that he wanted only the users within a group with a given SID.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-win32
mailing list