Hi. I am trying to modify a script I copied from someone on the technet forums that basically lets you name a computer before sysprep is started and joined to the domain automatically. i don't know anything about scripting and i am having trouble finding someone that knows how to code HTA files.. could you please help me take a look?
the code is here: (so i don't flood the forum) http://pastebin.com/Fjh8UurG
what i want to do is the following: i want to have a box named "network" .. this network box has three options
1) local
2) staff
3) student.
choosing any of those "networks" i would statically assign the values for :
- domainName = DomainNameArea.Value
- userName = UserNameArea.Value
- domainAdminPass = PasswordArea.Value
- domainAdminPassConfirm = PasswordAreaConfirm.Value
- OUName = OUNameArea.Value
i wonder if a line like this would work :
<tr><td>Network:</td>
<td><input type="text" size="30">
<select size="1" >
<option value= name="OUNameArea" value="OU=someou,DC=domain,DC=local" name="UserNameArea" value="DCJoin" name="PasswordArea" value="password"">student</option>
<option value= name="OUNameArea" value="someotherou,DC=domain,DC=local" name="UserNameArea" value="DCJoin" name="PasswordArea" value="password"">>staff</option>
</select>
</td>
</tr>
thanks,