A. You can use VBScript code that's similar to the following snippet, which adds a user to a group by using the user's distinguished name (DN):
Set grp = GetObject("LDAP://cn=testgrp,ou=testing,dc=savilltech,dc=com") Set oUser = GetObject("LDAP://cn=user1,ou=testing,dc=savilltech,dc=com") grp.Add(oUser.AdsPath) grp.SetInfo
0 comments
Hide comments