I'm new into HTA/vbscript. I did created this HTA vbscript file. The only thing i'm trying to find out is how to pass the values from the textbox and dropdownlist with the button so that the TS can continue with deployment.
The HTA is asking for a computername and OU.
<html><head><title>Windows 8 - Bare-Metal deployment</title><HTA:APPLICATIONID="objTest"APPLICATIONNAME="Bare-Metal deployment"SCROLL="yes"SINGLEINSTANCE="yes"></head><SCRIPTLANGUAGE="VBScript">'Hide TS progress windows
Dim oTSProgressUI
Set oTSProgressUI =Wscript.CreateObject("Microsoft.SMS.TSProgressUI")
oTSProgressUI.CloseProgressDialog()'VariablenDim sComputerName, oTaskSequenceA, oTaskSequenceB, sOuName
'SMS ObjectsSet oTaskSequenceA =CreateObject("Microsoft.SMS.TSEnvironment")Set oTaskSequenceB =CreateObject("Microsoft.SMS.TSEnvironment")'Textbox computername
SubCompNameTextbox
oTaskSequenceA("OSDComputername")=UCase(CompNameTextbox.Value)End sub
'Dropdownlist OU
SubOUselectSubIfOptionChooser.Value=1Then
oTaskSequenceB("OSDDomainOUName")=(LocationA)EndIfIfOptionChooser.Value=2Then
oTaskSequenceB("OSDDomainOUName")=(LocationB)EndIfEndSub</SCRIPT><body><inputtype="text"name="CompNameTextbox"size="30"><selectsize="2"name="OptionChooser"onChange="OUselectSub"><optionvalue="1">Location1</option><optionvalue="2">LocationB</option></select>
<input type="button" onclick="Deploy" value="Start deployment"
</body>
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi All
I'm new into HTA/vbscript. I did created this HTA vbscript file. The only thing i'm trying to find out is how to pass the values from the textbox and dropdownlist with the button so that the TS can continue with deployment.
The HTA is asking for a computername and OU.
Share this post
Link to post
Share on other sites