Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, December 1, 2017 2:43 PM
Hi
I have been trying to produce a nice looking HTA frontend to use in SCCM OSD that perform the following tasks.
1. Computer name generated automatically using a "WS-" prefix and then serial number (WS-SerialNumber).
2. A dropdown list to select whether the machine is a "Desktop" or "Laptop" and if "Laptop" install VPN software or if "Desktop" don't.
3. A dropdown to select "Laptop" or "Desktop" OU.
4. A dropdown to select which department the machine will belong to install a group of specific software relating to that department on top of the mandatory apps every build receives.
I'm hoping someone out there will have some kind of script already written that possibly I could use to perform this function as I have been trying to adapt other HTA's found on Google searches but cannot see how to adapt certain parts of the scripts?
Any help would be really appreciated.
Many thanks
Mark
All replies (7)
Monday, December 4, 2017 7:40 AM ✅Answered
You could refer to the links below:
SCCM 2012 OSD Task Sequence User Input Window.
https://gallery.technet.microsoft.com/scriptcenter/SCCM-2012-OSD-Task-9c3f2be7
SCCM - OSD Menu (HTA) v2.3
https://gallery.technet.microsoft.com/SCCM-OSD-Menu-HTA-ab5565ec#content
MDT UDI Wizard is more easier way.
Create custom pages using MDT UDI Wizard designer
http://venusingireddy.blogspot.sg/2014/01/create-custom-pages-using-mdt-udi.html
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, December 1, 2017 3:19 PM
Have you seen UI++: https://home.configmgrftw.com/uiplusplus/?
Jason | https://home.configmgrftw.com | @jasonsandys
Friday, December 1, 2017 3:54 PM
Hi
Looks good but seems to complicated for what I need.
I struggle with the creation of the HTA file to display the options that I require and use the correct syntax to tie it all together to link to variable, see sample:
######################################
<html>
<head>
<title>SCCM Build Selection</title>
</head>
<body bgcolor="#D3D1CF" scroll="no">
<script language="VBScript">
<!—
Dim Continue
Sub Window_OnLoad()
Continue = 0
End Sub
Sub button1_OnClick
Continue = 1
End Sub
Sub button2_OnClick
Continue = 3
End Sub
Public Function ClickButton
ClickButton = Continue
End Function
'—>
Set objects and declare global variables
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\.\root\cimv2")
Sub Window_onLoad
window.resizeTo 400,550 ' Resize the HTA window on first load
window.moveTo 100, 10 ' Move the window to the center
End Sub
</script>
<form name="Dbx">
<p>Please Choose Between Laptop or Desktop Computer Build:
<br>
<select name="COMPUTER TYPE" size="1">
<option>LAPTOP</option>
<option>DESKTOP</option>
</select></p>
</select></p>
<p>Please Select a Department To Join<br>
<select name="DEPARTMENT" size="1">
<option>FINANCE</option>
<option>INFORMATION TECHNOLOGY</option>
<option>P&T</option>
<option>PROPERTY</option>
<option>LEGAL</option>
<option>MARKETING</option>
</select></p>
</select></p>
</tr></table></div>
<p><input type="button" name="Continue" value=" Continue ">
<input type="button" name="button2" value=" Cancel "></p>
</form>
</body>
</html>
########################################
I don't really have the scripting knowledge to just identify what needs changing.
Thanks
Mark
Friday, December 1, 2017 4:30 PM
"but seems to complicated for what I need." = "I struggle with the creation of the HTA file"
What you have above can be done using UI++ in about 20 lines of XML.
Jason | https://home.configmgrftw.com | @jasonsandys
Friday, December 1, 2017 5:19 PM
I have looked again and cannot work it out.
I get asked for a Teir? - I select a number and continue.
Then it gives some options for software to install and if none selected it dissapears, not really sure what to do with the tool. I'm sure for you it can be done in 20 mins but I cannot even get to any options that relate to my needs, what am I doring wrong?
Friday, December 1, 2017 5:21 PM
You need to customize the configuration XML. What comes with the download is simply a sample or starting point.
Jason | https://home.configmgrftw.com | @jasonsandys
Monday, December 4, 2017 2:40 PM
Hi
Thank you for the links these files look easier for me to manage and adapt for the purpose.
Many thanks for all the suggestions guys, very much appreciated.
Mark