PowerShell Tool: MDT Media Builder
https://www.systanddeploy.com/2016/07/powershell-tool-mdt-media-builder.html
You need first to create the media.
This step will just create a folder Content\Deploy in the path you have selected and add the media in the Media node.
Then you have to update your media content. This step will generate boot images, ISO file, create the boot content to use on your USB stick ...
Why not doing all these actions in one ?
In this post I will show you a quick and little tool I have created which allows you to customize a media and build it in one step.
Is this tool esential ? Of course not, you can do it easily using MDT but I like to find different ways to do some actions and have fun with PowerShell.
Prerequisites
- At least PowerShell v3
- At least .Net Framework 4
- An existing Deployment Share build with MDT 2013 Update 1 or 2
How to get the tool ?
How it works ?
As shown in the screenshot below, the tool is composed of four parts:
- Sources: Choose your DeploymentShare and media path
- USB: Choose your USB to copy the deploy content
- Options: Choose boot image to generate, generate or not an ISO
- Rules: Edit or import customsettings.ini and boostrap.ini
- PE: Customize Windows PE properties
Sources tab
1/ Browse to your Deployment Share
2/ Browse to your media
USB tab
Media Builder - USB tab |
Note: This step won't format it, it has to be formated previously.
Use the the Copy type ListBox to copy the deploy content to your USB stick.
Copy type ListBox |
Media Builder - Options tab |
Media General properties |
Choose the selection profile to apply using the selection profile ListBox
Choose each kind of boot image to generate: x86-x64
If you want to generate an ISO file, type the name in the ISO file name TextBox
Rules tab
This tab is the the corresponding tab of the rules properties of your media.
Boostrap.ini part
Edit the Boostrap.ini using the Edit button
If you want to import an existing Boostrap.ini, click on the Import button and browse to your ini file.
Selection profile ListBox |
If you want to generate an ISO file, type the name in the ISO file name TextBox
Rules tab
Media Builder - Rules tab |
Media rules property in MDT |
Customsettings.ini part
Edit the Customsettings.ini using the Edit button
If you want to import an existing Customsettings.ini, click on the Import button and browse to your ini file.Boostrap.ini part
Edit the Boostrap.ini using the Edit button
If you want to import an existing Boostrap.ini, click on the Import button and browse to your ini file.
See the tool in action
We'll use the tool to build a media with the configuration below:
- DeploymentShare: C:\DeploymentShare
- USB: Brows to G:\ and set copy to Yes
- Options: Generate x64 image and generate ISO My_ISO.iso
- Rules: Import an existing Customsettings and let the Boostrap by default
1 / Generate the media
2 / Updating Boot media
2 / The ISO file will be created
3 / Deploy content will be copied to your USB Stick
You can find in the media folder the content below:
You can find on your USB Stick, the content below:
Once the process is completed a Media_Builder.log file will be available at the root of your media folder and at the root of your USB Stick if you have selected copy.
Generate media - Progress |
Updating boot images - Progress |
Generate ISO - Progress |
Copy deploy content to USB Stick - Progress |
Media folder content |
You can find on your USB Stick, the content below:
USB Stick content |
Once the process is completed a Media_Builder.log file will be available at the root of your media folder and at the root of your USB Stick if you have selected copy.
2 commentaires
Do you have any good methods/tools for spanning MDT across multiple DVDs? Have a customer that cant use USB, but has a large MDT deployment they need to put on Multiple DVDs
Would you please upload the tool to github?The download link is is invalid.Thanks.
Enregistrer un commentaire