Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hta front end to a script?

Status
Not open for further replies.
May 11, 2004
37
US
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

 
All you really need is an HTML page with a text box for each of the values you want enterd and a button to commit the changes. Then create a sub called btnCommit_onclick where btnCommit is the id of the button. In the sub put the code to make the change. I have work to do right now, but I will post some links to HTA info soon.

[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top