How to add custom scripts to the MDT?
I have setup MDT using the steps provided in this link
When I am trying to edit the task sequence and add my own script, the ps1 file is not downloading on the target machine and not running.
Attached the screenshot.
I copied the ps1 file to Deployment share\scripts folder
Solution 1:
- First thing, I would crate a separate folder for custom scripts, and place it after Windows Update step.
- Then create new step and chose
Run PowerShell Script
notRun Command Line
option. - Then enter a path to the script in
PowerShell script
field, just the path. - Then add the
-ExecutionPolicy Bypass
inParameter**
field. - Be shore that the path to the script is accessible to MDT Deployment.