none
HTA help for executing a vbscript based on options selected RRS feed

  • General discussion

  • Hi All

    I am putting together a HTA for computername generation during OS deployment via SCCM and i have 2 drop down options workstation type and location and based on the options selected the name of the machine will be determined.

    I have the HTA setup for options and code for machine name but i am struggling how to set the IF conditions. a user will select location and workstattions type to derive the machine name. 

    Ex: Location US and Laptop it will USLXXX and if its DE and desktop it will be DEDXXXX

    i used the below code but get a error when launching HTA

    ((For Each objOption in SiteName.options
    If SiteName.options ="US") And 
    (For Each objOption in WorkstationType.options
    WorkstationType.options="Desktop")) Then

    • Changed type Bill_Stewart Friday, July 7, 2017 6:20 PM
    • Moved by Bill_Stewart Friday, July 7, 2017 6:20 PM This is not "fix/debug/rewrite my script for me" forum
    Tuesday, May 16, 2017 11:11 AM

All replies

  • Ask whoever wrote your HTA to debug and fix it for you.

    -- Bill Stewart [Bill_Stewart]

    Tuesday, May 16, 2017 2:15 PM
  • "option" is an object.  It needs to have the innertext property reference.

    Without a bit of script it is not possible to know your issue.,


    \_(ツ)_/

    Tuesday, May 16, 2017 3:11 PM