
Adding a domain group to local administrators group
Dim myGroup
Dim myUser
Set myGroup = GetObject("WinNT://LION/GroupName,group")
Set myUser = GetObject("WinNT://LION/UserName,user")
myGroup.Add(myUser.ADsPath)
Quote:
> Hi Kenneth,
> I think we can do this through ADSI. In ADSI we have the IADSGroup object
> which has the method ADD used to add one ADSI object to an existing group.
> You can either use the LDAP provider or the Winnt provider. Please
> reference the "Platform SDK -> Networking and Directory Services ->
> Directory Services -> ADSI" part in the MSDN for more information.
> Hope this helps,
> Robin