Skip to content

MDT (Microsoft Deployment Toolkit)

MDT deployment remembers data drive (Unable to find LiteTouch.wsf)

In MDT Deloyment Workbench Task Sequence

  • Insert a powershell step after the format and partition step
  • Put those 3 lines into a .ps1 file and save it to the scripts folder on the deployment share
    $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
    $OSDisk = Get-WMIObject Win32_Volume | ? { $_.Label -eq 'OSDISK'}
    $tsenv.Value("OSDisk") = $OSDisk.DriveLetter
    
  • Reference the script in the new step as %SCRIPTROOT%\mypowershellfile.ps1
  • Add the .net framework and windows powershell features
  • Update the deployment share