Jump to content
DeployCentral
Sign in to follow this  
  • entries
    11
  • comments
    2
  • views
    44,907

Listing Multiple Domains and Organizational Units in the SmartDeploy Answer File

Sign in to follow this  
Erik

3,402 views

In SmartDeploy version 1920 we have added the feature to list multiple domains and OUs in an answer file. You can then choose from this list during deployment. I am going to take a minute to explain how to set this up with an existing answer file.

By default when specifying a domain and exporting the answer file you will get something that looks like this:

 

		<network_identification>
			<computer_name/>
			<!-- 0 = Domain, 1 = Workgroup -->
			<membership>0</membership>
			<domain>SmartDeploy.Local</domain>
			<domain_options><option></option></domain_options>
			<organizational_unit>Cn=test,cn=computers,dc=SmartDeploy,dc=local</organizational_unit>
			<organizational_unit_options><option></option></organizational_unit_options>
			<workgroup/>
		</network_identification>
 

 

If you wish to add another domain or OU to this list you can simply add the next entry in the option node. For example:

 

		<network_identification>
			<computer_name/>
			<!-- 0 = Domain, 1 = Workgroup -->
			<membership>0</membership>
			<domain>SmartDeploy.Local</domain>
			<domain_options><option>Prowess.Local</option></domain_options>
			<organizational_unit>cn=test,cn=computers,dc=SmartDeploy,dc=local</organizational_unit>
			<organizational_unit_options><option>cn=test,cn=computers,dc=Prowess,dc=local</option></organizational_unit_options>
			<workgroup/>
		</network_identification>
 

 

The resulting options in Deploy Wizard will look like the picture below.

SmartDeployAnswerFileOptions.jpg

If you wish to add more options you simply need to add another <option> set. For example:

 

		<network_identification>
			<computer_name/>
			<!-- 0 = Domain, 1 = Workgroup -->
			<membership>0</membership>
			<domain>SmartDeploy.Local</domain>
			<domain_options><option>Prowess.Local</option><option>Test.Local</option></domain_options>
			<organizational_unit>cn=test,cn=computers,dc=SmartDeploy,dc=local</organizational_unit>
			<organizational_unit_options><option>cn=test,cn=computers,dc=Prowess,dc=local</option></organizational_unit_options>
			<workgroup/>
		</network_identification>
 

 

Sign in to follow this  


2 Comments


Recommended Comments

Hi,

I've been trying this with an unattended script but it's not working. If I have no ou options the image joins the domain after being deployed, but if I have any options listed it doesn't join our domain and leaves the PC in a workgroup.

What I would like is for the deployment process to be totally scripted and hands off except for this one window to pop up asking the tech to choose an ou and enter the computer name before the image is deployed. This is because we have three seperate ou's that we put our PC's in (laptops, workstations, and desktops) and I would love it if the tech could choose where to put it without me needing to create and maintain seperate iso's and scripts for each type.

Any help appreciated.

Thanks

Share this comment


Link to comment

Hi Ewen,

When using an unattended file in SmartDeploy you will need to make some changes for the deployment to halt on the identification page. For example you could use something like:

 

                <network_identification>
                        <computer_name/>
                        <!-- 0 = Domain, 1 = Workgroup -->
                        <membership>0</membership>
                        <domain_options><option>Prowess.Local</option><option>Test.Local</option><option>SmartDeploy.com</option></domain_options>
                        <organizational_unit>cn=test,cn=computers,dc=SmartDeploy,dc=local</organizational_unit>
                        <organizational_unit_options><option>cn=test,cn=computers,dc=Prowess,dc=local</option></organizational_unit_options>
                        <workgroup/>
                </network_identification>
 

 

Removing the main <Domain> node should cause the deployment to stop and ask the technician to enter a valid domain, which they can then choose from the drop down. At this point they can also select the OU and computer name.

In regards to adding the machine to a specific OU, please be sure to enter the OU in distinguished format. If you do not know the exact string to enter you can open ADSIEdit and drill down to the OU you want, select properties and then find the distinguished name.

If you are still having problems you can send an email to Support@SmartDeploy.com with a copy of the netsetup.log from c:\windows\debug on the deployed machine.

Thanks,

Erik

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×