richardrekos
MIS
I am new to scripting and have just seen an example of an hta front end for a script. I cannot figure out how to setup a form on a hta page so I can input the value for "cn" and "ou" (4th line on script below). I am trying to have this script add a user to a security group in AD. I don't want to have to go into the code and enter the cn and ou values, I would like to use a form in a hta page. Can anyone help w/ this? Many thanks.
Set objGroup = GetObject _
("LDAP://cn=testing,ou=qm,dc=xyz,dc=com")
objGroup.PutEx ADS_PROPERTY_APPEND, _
"member", Array("cn=rich,ou=test,ou=qm,dc=xyz,dc=com")
objGroup.SetInfo
Set objGroup = GetObject _
("LDAP://cn=testing,ou=qm,dc=xyz,dc=com")
objGroup.PutEx ADS_PROPERTY_APPEND, _
"member", Array("cn=rich,ou=test,ou=qm,dc=xyz,dc=com")
objGroup.SetInfo