Provide option to select Deployment Share during MDT Deployment

There are times when you would want to provide an option or prompt the user to select a Deployment Share during  an MDT Deployment, it quite simple to get it working with the help of Extra Directory.
See https://deploymentmechanic.wordpress.com/2015/10/31/add-extra-directory-to-winpe-x86-x64-in-mdt/ for more information about how to add Extra Directory. You would need to perform the following steps on any one of your deployment share and ensure that you generate WinPE ISO from the same deployment share.
Create an XML file and specify the various deployment servers/shares.  You could copy the below sample content into Notepad and save it as LocationServer.xml. You would need to update friendlyname and UNCPath as per your infrastructure/deployment share.
<?xml version=”1.0″ encoding=”utf-8″ ?>
<servers>
    <QueryDefault></QueryDefault>
    <server>
        <serverid>1</serverid>
        <friendlyname>Deployment LAB Share</friendlyname>
        <UNCPath>\\WIN2K8MDT12\DeployLab$</UNCPath>
    </server>
        <server>
        <serverid>2</serverid>
        <friendlyname>Deployment Mechanic Lab Share</friendlyname>
        <UNCPath>\\WIN2K8MDT12\DMLab$</UNCPath>
    </server>
</servers>
Next create a folder called “Deploy” under the root of Extra Directory, in my case under the x86 and x64 folder.
Deploy
Create another folder called “Control” under “Deploy” folder and Copy LocationServer.xml you created into the “Control” folder.

Control

Next Launch Deployment Workbench, Open Properties of your Deployment Share where you have made required configuration to add the Extra Directory and Click on Rules Tab and Click on the Edit Bootstrap.ini button at the bottom.
Modify the Bootstrap.ini file to NOT include any DeployRoot value, you could either delete the line or comment the line by putting a semi-colon in front of the specific value in this case DeployRoot. We would need to do this cause the LocationServer.xml feature dynamically sets the value. Save and close Bootstrap.ini. Click OK on the Properties Windows.

Bootstrap

Note : When you use the LocationServer.xml feature, By default the logic in this feature discards any credentials provided in bootstrap.ini
Next right click on the deployment share and click on update deployment share and completely regenerate the Boot Images and click Finish when done.
Boot off the new WinPE and you should see the LocationServer.xml feature in action.

select_share

!! Preenesh

Advertisements
This entry was posted in MDT and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s