[python-win32] Win32_GroupUser

Nathan Jeffrey nathan.jeffrey at gmail.com
Mon Nov 13 19:11:30 CET 2006


On 11/13/06, Tim Golden <Tim.Golden at viacom-outdoor.co.uk> wrote:
> <code>
> import wmi
>
> c = wmi.WMI ()
> sql_group = c.Win32_Group (Name="SQL_Adminstrators")
> sql_users1 = sql_group.associators (wmi_result_class="Win32_Account")
> # or, if you prefer
> sql_users2 = sql_group.associators
> (wmi_association_class="Win32_GroupUser")
> </code>

Although it may not answer the question I posted, it does answer an
unasked question about the way Windows WMI Does Stuff.

I shall attempt it tomorrow and see if it works, and how fast on our W2K domain.

Cheers!

--
- Nathan


More information about the Python-win32 mailing list