MDT: Running a PowerShell Script During a Deployment
In this tutorial, I will explain how to run a PowerShell script (.ps1 file) during a deployment with MDT. Copy the ps1 1 file to the Scripts folder in the DeploymentShare folder. Open the properties of the task sequence then add a task of type Run Command Line 1. Move the task to the desired …