I want to perform a custom cleanup step after "Gather local only" and before "Create WIM". I have tried a number of approaches, but they have all failed to find either the custom script that I wrote, or the CMD.EXE file specified in a "Run Command Line" step via START and BDDRun.exe. Opening a command shell is a last resort attempt to examine the environment on the Reference Computer just prior to capturing the WIM so I can implement the appropriate steps.
The custom cleanup steps will involve deleting folders, files and registry entries in a way that duplicates our current non-MDT image generation process. Any suggestions will be appreciated
Put your script into the Scripts folder on the Deployment Share, and then call it with a "Run Command Line" step and use the command line:
You could also use VBScript or a Batch file or whatever. You can also use PowerShell (but call the PowerShell step instead). Another option is to create a batch file, import it as an "Application", and then call the running of the Application.