How woult i be able to enumerate all the groups a single computer is on the domain?
i am able to get the groups a user is in but not computer using this code
------------------------------------------------
Set user = Getobject("WinNT://domain/username,user")
For Each Grp in user.groups
ListGroups = ListGroups & Grp.name & vbtab
Next
msgbox ListGroups
------------------------------------------------
I thought i could change it but this didnt work, it just listed local groups, and not ones on the domain
any one know how i can do this>?
------------------------------------------------
Set user = Getobject("WinNT://domain/computername,computer")
MyComputer.Filter = Array("group")
For Each Grp in user
ListGroups = ListGroups & Grp.name & vbtab
Next
msgbox ListGroups
------------------------------------------------
Thanks
i am able to get the groups a user is in but not computer using this code
------------------------------------------------
Set user = Getobject("WinNT://domain/username,user")
For Each Grp in user.groups
ListGroups = ListGroups & Grp.name & vbtab
Next
msgbox ListGroups
------------------------------------------------
I thought i could change it but this didnt work, it just listed local groups, and not ones on the domain
any one know how i can do this>?
------------------------------------------------
Set user = Getobject("WinNT://domain/computername,computer")
MyComputer.Filter = Array("group")
For Each Grp in user
ListGroups = ListGroups & Grp.name & vbtab
Next
msgbox ListGroups
------------------------------------------------
Thanks