I am trying to write a script that after I creat a simple user in active directory will put them in the groups I want them in. I am having trouble figuring out what is what. I have some sample script from microsoft and I dont know what two thins mean. First is the OU. I know it means organizational unit, but where do I find that? Also what user name do they mean. Do they want the name that the user will logon with or the full name??
This is the code I am working with. This is all from microsoft so if you could tell me where I need to put my stuff in that would be great. Thanks
Const ADS_PROPERTY_APPEND = 3
Set objGroup = GetObject _
("LDAP://cn=Atl-Users,cn=Users,dc=NA,dc=fabrikam,dc=com")
objGroup.PutEx ADS_PROPERTY_APPEND, _
"member", Array("cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
objGroup.SetInfo
This is the code I am working with. This is all from microsoft so if you could tell me where I need to put my stuff in that would be great. Thanks
Const ADS_PROPERTY_APPEND = 3
Set objGroup = GetObject _
("LDAP://cn=Atl-Users,cn=Users,dc=NA,dc=fabrikam,dc=com")
objGroup.PutEx ADS_PROPERTY_APPEND, _
"member", Array("cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
objGroup.SetInfo