View computernames from a group in active directory

Dear friend,

In my active directory, I have groups of computernames in spite of group of users. I know how can view users from a group, but in this case, I need to view the computernames from a group. Do you know how?

For example, to view users from a group the code is:


DomainString = "GRUPOCGD.com"
UserString = "rhs0002"

Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString)

For Each GroupObj In UserObj.Groups
List = List & GroupObj.Name & vbCrLf
Next

Wscript.ECHO List

UserObj = Nothing
GroupObj = Nothing

But how I can view the computername from a group? Do you know how? and way?

Thanks!

[855 byte] By [PedroCGD] at [2007-12-24]