Install-OSDeployMDT
Initializes an MDT Deployment Share for use with OSDeploy.
Module
OSDeploy
Platform
Windows
Requires
MDT installed, Run as Administrator
Description
Configures an MDT Deployment Share so that Invoke-OSDeployMDT runs automatically on every Update Deployment Share operation.
Without -Force, the function runs in audit mode only — it reports the current state of the deployment share without making any changes.
With -Force, the function performs the following initialization steps:
Resolves the MDT installation directory and active Deployment Share path.
Creates
Templates\,Templates\winpe-drivers\, andTemplates\winpe-extrafiles\under the Deployment Share root.Copies
winpeshl.ini,Wimscript.ini,Unattend_PE_x64.xml, andLiteTouchPE.xmlfrom the MDT templates directory intoDEPLOYROOT\Templates\.Copies
Background.bmpfrom MDT Samples toDEPLOYROOT\Templates\background.bmp.Rewrites
%INSTALLDIR%references inLiteTouchPE.xmlto use%DEPLOYROOT%.Mirrors the
<Components>element fromDEPLOYROOT\Boot\LiteTouchPE_x64.xmlinto the template.Registers
Invoke-OSDeployMDTas the MDT LiteTouchPE exit command.Updates
Control\Settings.xml: disables x86, sets scratch space to 512 MB, sets wallpaper path.
Supports -WhatIf and -Confirm.
This function only needs to be run once per deployment share. Running it again with -Force will overwrite existing template files.
Syntax
Parameters
-Force
Switch
No
Performs all initialization changes. Without this switch the function runs in audit mode and reports state only.
Examples
Last updated
Was this helpful?

