golfboy1971
Technical User
I am having trouble writing a VBScript to help me nest some Active Directory groups and would appreciate any help you could give me.
I have a need to nest some groups from an Active Directory parent domain to groups in a child domain. However every time I run the script below I get the message "There is no such object on the server" for the ObjGroup.Add line.
Set objGroup = GetObject ("LDAP://cn=ContosoManagers,ou=DSS,ou=Application-Access,dc=contoso,dc=com")
Set objGroupToAdd = GetObject ("LDAP://cn=ContosoCorpManagers,ou=Groups,dc=contosocorp,dc=com")
objGroup.Add(objGroupToAdd.ADsPath)
wscript.echo "Complete"
Whilst messing around the other day I found a way to get it working using the SID of the group from the parent domain, but have since lost my work and can't remember what I did! :-( ... I've got a looooooooot of groups to nest, so need a VBScript to do it.
Could you help me please.
Regards
Golfboy
I have a need to nest some groups from an Active Directory parent domain to groups in a child domain. However every time I run the script below I get the message "There is no such object on the server" for the ObjGroup.Add line.
Set objGroup = GetObject ("LDAP://cn=ContosoManagers,ou=DSS,ou=Application-Access,dc=contoso,dc=com")
Set objGroupToAdd = GetObject ("LDAP://cn=ContosoCorpManagers,ou=Groups,dc=contosocorp,dc=com")
objGroup.Add(objGroupToAdd.ADsPath)
wscript.echo "Complete"
Whilst messing around the other day I found a way to get it working using the SID of the group from the parent domain, but have since lost my work and can't remember what I did! :-( ... I've got a looooooooot of groups to nest, so need a VBScript to do it.
Could you help me please.
Regards
Golfboy