![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Guest
Posts: n/a
|
Re: Replace OU text box with drop-down list
Mike,
The documentation, Configuration Reference Guide has some incorrect info. The doc calls for DomainOUS.XML and it should be DomainOUList.xml. I have used the DomainOUList.xml and it works fine in creating the dropdown list. I am using the XML file format as specified in the documentation, <?xml version="1.0" encoding="utf-8"?> <DomainOUs> <DomainOU>OU=\WOODGROVEBANK\NYC\Tellers\Computer s </DomainOU> <DomainOU>OU=\WOODGROVEBANK\NYC\Managers\Compute rs </DomainOU> </DomainOUs> Is the fomat correct? This value gets added as is into the sysprep.inf and the sysprep documentation requires the 'OU=Computers,OU=Tellers' format. "Mike Lewis (MS)" wrote: > The Configuration Reference Guide - look up DomainOUs and it gives the > format of the file, to be created in the control directory. > > "Shane Cribbs" <> wrote in message > news:... > > Also, deploywiz_initialization.vbs references a file called > > DomainOUList.xml. > > I haven't figured it all out quite yet, but it appears that if this file > > exists, it MAY provide a selectable list as you're talking about. If > > anyone > > figures it out before me, please post your findings! > > > > C Shane Cribbs > > > > "Scott Fenstermacher" wrote: > > > >> After doing some digging in the LiteTouch scripts, I've found a way to > >> specify > >> the OU to place the new computer account in with a drop-down list, rather > >> than typing out the ADSI path to the correct OU (I need all the help I > >> can > >> get to keep from fat-fingering the OU path.) > >> > >> Before continuing, keep in mind this is the result of my own > >> experimentation. > >> NO guarantees are implied, so hack at your own risk. > >> > >> The action takes place in the Distribution$\Scripts folder. > >> > >> First, backup the file DeployWiz_Definition_ENU.xml. This is the file > >> you'll > >> be modifying, so C-Y-A. > >> > >> Open the file DeployWiz_Definition.ENU in a text editor. Find the > >> following > >> statement (I've added line breaks for readability): > >> <input type=text id=MachineObjectOU name=MachineObjectOU > >> style="width: > >> 75%;" > >> language=vbscript onpropertychange=ValidateDomainMembership > >> accesskey=O> > >> > >> This statement creates the text box. We want to replace it with a select > >> list, but still retain the script functionality. > >> <select id="MachineObjectOU" name="MachineObjectOU" style="width: > >> 75%;" > >> language=vbscript > >> onpropertychange=ValidateDomainMembership > >> accesskey=O> > >> <option value="...">...</option> > >> </select> > >> > >> Add the <option> statement(s) to reflect the desired OU's: > >> <option value="OU=Vista,DC=mydomain,DC=org">Vista OU</option> > >> <option value="OU=Computers,OU=Offices,DC=mydomain,DC=org" >Computer > >> OU</option> > >> etc... > >> > >> Additionally, since I'm always going to join machines to the same domain, > >> I've added a 'value' attribute to the joindomain text box (this element > >> appears > >> above the select element we just created): > >> > >> <input type=text id=joindomain name=JoinDomain value="mydomain" > >> size=37 > >> language=vbscript onpropertychange=ValidateDomainMembership > >> accesskey=a> > >> > >> Save the file, boot with LiteTouch and run the Deployment Wizard. If you > >> haven't forgotten a closing bracket or created another HTML syntax error, > >> you should get an easy drop-down list with your OU descriptions. > >> > >> -Scott > >> > >> PS: If you want a different option to be the default where radio buttons > >> are used, I've found replacing the attribute 'checked' with 'checked=yes' > >> seems to do the trick. > >> > >> > >> > > |
|
|
|
#12 |
|
Guest
Posts: n/a
|
Re: Replace OU text box with drop-down list
Mike,
The documentation, Configuration Reference Guide has some incorrect info. The doc calls for DomainOUS.XML and it should be DomainOUList.xml. I have used the DomainOUList.xml and it works fine in creating the dropdown list. I am using the XML file format as specified in the documentation, <?xml version="1.0" encoding="utf-8"?> <DomainOUs> <DomainOU>OU=\WOODGROVEBANK\NYC\Tellers\Computer s </DomainOU> <DomainOU>OU=\WOODGROVEBANK\NYC\Managers\Compute rs </DomainOU> </DomainOUs> Is the fomat correct? This value gets added as is into the sysprep.inf and the sysprep documentation requires the 'OU=Computers,OU=Tellers' format. "Mike Lewis (MS)" wrote: > The Configuration Reference Guide - look up DomainOUs and it gives the > format of the file, to be created in the control directory. > > "Shane Cribbs" <> wrote in message > news:... > > Also, deploywiz_initialization.vbs references a file called > > DomainOUList.xml. > > I haven't figured it all out quite yet, but it appears that if this file > > exists, it MAY provide a selectable list as you're talking about. If > > anyone > > figures it out before me, please post your findings! > > > > C Shane Cribbs > > > > "Scott Fenstermacher" wrote: > > > >> After doing some digging in the LiteTouch scripts, I've found a way to > >> specify > >> the OU to place the new computer account in with a drop-down list, rather > >> than typing out the ADSI path to the correct OU (I need all the help I > >> can > >> get to keep from fat-fingering the OU path.) > >> > >> Before continuing, keep in mind this is the result of my own > >> experimentation. > >> NO guarantees are implied, so hack at your own risk. > >> > >> The action takes place in the Distribution$\Scripts folder. > >> > >> First, backup the file DeployWiz_Definition_ENU.xml. This is the file > >> you'll > >> be modifying, so C-Y-A. > >> > >> Open the file DeployWiz_Definition.ENU in a text editor. Find the > >> following > >> statement (I've added line breaks for readability): > >> <input type=text id=MachineObjectOU name=MachineObjectOU > >> style="width: > >> 75%;" > >> language=vbscript onpropertychange=ValidateDomainMembership > >> accesskey=O> > >> > >> This statement creates the text box. We want to replace it with a select > >> list, but still retain the script functionality. > >> <select id="MachineObjectOU" name="MachineObjectOU" style="width: > >> 75%;" > >> language=vbscript > >> onpropertychange=ValidateDomainMembership > >> accesskey=O> > >> <option value="...">...</option> > >> </select> > >> > >> Add the <option> statement(s) to reflect the desired OU's: > >> <option value="OU=Vista,DC=mydomain,DC=org">Vista OU</option> > >> <option value="OU=Computers,OU=Offices,DC=mydomain,DC=org" >Computer > >> OU</option> > >> etc... > >> > >> Additionally, since I'm always going to join machines to the same domain, > >> I've added a 'value' attribute to the joindomain text box (this element > >> appears > >> above the select element we just created): > >> > >> <input type=text id=joindomain name=JoinDomain value="mydomain" > >> size=37 > >> language=vbscript onpropertychange=ValidateDomainMembership > >> accesskey=a> > >> > >> Save the file, boot with LiteTouch and run the Deployment Wizard. If you > >> haven't forgotten a closing bracket or created another HTML syntax error, > >> you should get an easy drop-down list with your OU descriptions. > >> > >> -Scott > >> > >> PS: If you want a different option to be the default where radio buttons > >> are used, I've found replacing the attribute 'checked' with 'checked=yes' > >> seems to do the trick. > >> > >> > >> > > |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
| New To Site? | Need Help? |