none
Make Organizational Unit a Required Field in Lite Touch Wizard RRS feed

  • Question

  • We have a lot of GPOs based on Organizational Units and machines need to be moved to correct OUs during imaging.  Our OU placement works only when the person deploying remembers to select it from the drop down.  I want to force them to select the OU before continuing.  Is there anyway to make this field required?

    I assume I would change this in either DeployWiz_ComputerName.vbs or the xml.  Any guidance would be much appreciated.

    We are running MDT 2012 version 6.1

    Wednesday, August 28, 2013 3:22 PM

Answers

  • I found a very simple way to do this for anyone wondering.

    Add a <label> tag to the textbox control in the respective definition file.

    Example: Make the OU name required. (Add the <label> tag as shown below)

    DeployWiz_ComputerName.xml (under line 74)

    <input type=text id=MachineObjectOU name=MachineObjectOU size=30 language=vbscript onpropertychange=ValidateDomainMembership accesskey=O>

    <label for=MachineObjectOU>* Required</label>

    • Marked as answer by ChiNick Friday, September 6, 2013 3:07 PM
    Friday, September 6, 2013 3:07 PM

All replies

  • If there is a set logic already in place for which OU a machine should end up in, I'd just write it into a VBScript (or PowerShell) and call it so that you can set MachineObjectOU and then don't rely on the tech to know and select the right one.

    If you must have a tech do it (not a algorithmic decision), then start with a Niehaus blog here (http://blogs.technet.com/b/mniehaus/archive/2012/03/01/3474394.aspx) and check out the MDT Wizard Studio (http://mdtwizardstudio.codeplex.com/).  If you want an example of a 'validated' pane, I prefer to look at DeployWiz_AdminPassword.  You can see that it ensures both passwords entered are the same and if they aren't, then it Disables the button (via "ButtonNext.Disabled = not ValidatePassword").  Adapt as needed for the pane you are editing.


    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    Thursday, August 29, 2013 1:22 AM
    Answerer
  • I found a very simple way to do this for anyone wondering.

    Add a <label> tag to the textbox control in the respective definition file.

    Example: Make the OU name required. (Add the <label> tag as shown below)

    DeployWiz_ComputerName.xml (under line 74)

    <input type=text id=MachineObjectOU name=MachineObjectOU size=30 language=vbscript onpropertychange=ValidateDomainMembership accesskey=O>

    <label for=MachineObjectOU>* Required</label>

    • Marked as answer by ChiNick Friday, September 6, 2013 3:07 PM
    Friday, September 6, 2013 3:07 PM